User Tools

Site Tools


items:item_components:damageable

This is an old revision of the document!


Table of Contents

minecraft:damageable

The minecraft:damageable item component allows this item to be damaged. Its durability may be overridden for a specific item stack by using the minecraft:max_damage item stack component. This item component is usually combined with minecraft:tool, minecraft:weapon and minecraft:armor. Note that using this item component requires you to set the minecraft:max_stack_size item component to 1.

Fields

Name Description Type Default Value
durability How many hits this item can take before breaking. A positive integer
preserve_item Whether to preserve the item at 1 durability. An optional boolean false

Example

{
  "durability": 250
}
items/item_components/damageable.1713533226.txt.gz · Last modified: 2024/04/19 13:27 by errorcraft