User Tools

Site Tools


items:item_components:equipment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
items:item_components:equipment [2024/04/19 13:27] – removed - external edit (Unknown date) 127.0.0.1items:item_components:equipment [2024/04/19 13:27] (current) – ↷ Links adapted because of a move operation errorcraft
Line 1: Line 1:
 +====== minecraft:equipment ======
 +The ''minecraft:equipment'' item component allows an entity to wear this item in a specific slot.
 +This item component is usually combined with [[items:item_components:armor|minecraft:armor]] and [[items:item_components:damageable|minecraft:damageable]].
  
 +
 +==== Fields ====
 +^  Name  ^  Description  ^  Type  ^  Default Value  ^
 +| ''slot'' | The equipment slot to place the item in. | An equipment slot | |
 +| ''swappable'' | Whether this item may be swapped with another item in its slot. | An optional boolean | ''false'' |
 +| ''equip_sound'' | The sound event to play when equipping the item. | A [[mc>Sounds.json#Sound_events|sound event]] | |
 +
 +
 +==== Example ====
 +<code javascript>
 +{
 +  "slot": "head",
 +  "swappable": true,
 +  "equip_sound": "minecraft:item.armor.equip_iron"
 +}
 +</code>