Origins: Powerful Powers
» Entity conditions » Recent damage blocked

Recent damage blocked

origins-powerful-powers:recent_damage_blockedentity conditiontracked

The total damage the entity blocked with a shield in the last window_ticks ticks. The blocked-hits counterpart of recent damage taken.

FieldTypeDefaultDescription
window_ticksInteger60How far back to add up, in ticks. Capped at 600 (30 seconds).
comparisonComparisonrequired
compare_toFloatrequireddamage points (2 = one heart)
  • It adds up the raw damage of each blocked hit, as it would have been before armor.
  • Hits that get past the shield go to recent damage taken.
  • Blocked hits during the damage cooldown (invulnerable ticks) are still counted.
  • False for entities that aren't living.

Example: shield bash.

json
{
  "type": "origins:action_over_time",
  "interval": 20,
  "condition": {
    "type": "origins-powerful-powers:recent_damage_blocked",
    "window_ticks": 100,
    "comparison": ">=",
    "compare_to": 12
  },
  "entity_action": {
    "type": "origins:apply_effect",
    "effect": {
      "effect": "minecraft:strength",
      "duration": 40,
      "amplifier": 0
    }
  }
}

After blocking 12 or more damage within 5 seconds, you get Strength, refreshed every second while that stays true.

Attribute: recent_damage_blocked (always a 60-tick window)