Enlightened Armor Action
Has a chance to heal you when attacked
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
chance | Double | 0.1 | Chance to trigger the heal (e.g. 0.1 for 10%) |
healAmount | Double | 2.0 | Amount of health to restore (in half-hearts) |
TypeWriter 通用字段(criteria, modifiers, triggers)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
When to use it
Put this entry in the actions of a mechanic of a Custom Enchantment Definition whose event is PLAYER_DEFEND. It reads the damage event of a hit received by the wearer.