Indestructible Action
Has a chance to repair the tool instead of taking damage when mining
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
repairChance | Double | 0.1 | Chance to repair 1 durability instead of taking damage (0.1 = 10%) |
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 BLOCK_BREAK. It reads the block-break event.