itemdamaging (task type)

Since v3.15.1

Damage certain items with a set amount of damage (by reducing durability).

Options

Key Description Type Required Default Notes
amount The number of damage to damage the item. Integer Yes - -
item The specific item to damage. 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

Damage diamond pickaxes with 12000 points of damage:

itemdamaging:
  type: "itemdamaging"
  amount: 12000           # amount of damage to damage the item
  item: DIAMOND_PICKAXE   # item to damage
  exact-match: false      # we need to ignore nbt

Back to top

This wiki serves as a manual for Quests however there is no guarantee that the information is up-to-date or complete. As per the license, this software provides absolutely no warranty, nor are the maintainers liable for any damages. Please see the license text for more information.

This site uses Just the Docs, a documentation theme for Jekyll.