itemmending (task type)
Since v3.15.1
Mend certain items with a set amount of repair (by increasing durability with mending enchantment).
Options
Key | Description | Type | Required | Default | Notes |
---|---|---|---|---|---|
amount | The number of repair to mend the item. | Integer | Yes | - | - |
item | The specific item to mend. | Material, or ItemStack | No | - | Accepts standard item definition. Please see this list (1.13+) or this list (1.8-1.12) for material names. |
data | The data code for the item. | Integer | No | 0 | This field is not used in Minecraft versions 1.13+, nor is it compatible with ItemStack definitions. |
exact-match | Whether the item should exactly match what is defined. | Boolean | No | true | - |
worlds | Worlds which should count towards the progress. | List of world names | No | - | - |
Examples
Mend diamond pickaxes with 12000 points of repair:
itemmending:
type: "itemmending"
amount: 12000 # amount of repair to mend the item
item: DIAMOND_PICKAXE # item to mend
exact-match: false # we need to ignore nbt