Origins: Powerful Powers
» Entity conditions » Invulnerable ticks

Invulnerable ticks

origins-powerful-powers:invulnerable_ticksentity condition

Ticks left in the entity's damage cooldown. When hurt, it's set to 20 and counts down. While it's above 10, a new hit only gets through if it's stronger than the last one.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toIntegerrequiredticks

Example:

json
{
  "type": "origins:action_over_time",
  "interval": 1,
  "condition": {
    "type": "origins-powerful-powers:invulnerable_ticks",
    "comparison": ">",
    "compare_to": 10
  },
  "entity_action": {
    "type": "origins:execute_command",
    "command": "particle minecraft:enchanted_hit ~ ~1 ~ 0.3 0.5 0.3 0 2"
  }
}

Sparkles while you're protected from weaker follow-up hits.

Attribute: invulnerable_ticks