Minecraft:Data component format/equippable: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 4: | Line 4: | ||
*** {{nbt|string}}{{nbt|compound|equip_sound}}: {{json_ref|sound event|inline=1}} to play when the item is equipped. Defaults to <code>item.armor.equip_generic</code>. | *** {{nbt|string}}{{nbt|compound|equip_sound}}: {{json_ref|sound event|inline=1}} to play when the item is equipped. Defaults to <code>item.armor.equip_generic</code>. | ||
**** {{nbt inherit/sound event|sounds}} | **** {{nbt inherit/sound event|sounds}} | ||
*** {{nbt|string|asset_id}}: The [[Minecraft:resource location]] of the equipment model to use when equipped. The directory this refers to is <code>assets/<namespace>/equipment/<id>.json</code>. If not specified, falls back to rendering as the item itself when in the head slot (if not applicable, the item does not render). | *** {{nbt|string|asset_id}}: The [[Minecraft:resource location]] of the [[Minecraft:equipment model]] to use when equipped. The directory this refers to is <code>assets/<namespace>/equipment/<id>.json</code>. If not specified, falls back to rendering as the item itself when in the head slot (if not applicable, the item does not render). | ||
*** {{nbt|string}}{{nbt|list|allowed_entities}}: Entity ID, Entity Tag, or list of Entity IDs to limit which entities can equip this item. Defaults to all entities. | *** {{nbt|string}}{{nbt|list|allowed_entities}}: Entity ID, Entity Tag, or list of Entity IDs to limit which entities can equip this item. Defaults to all entities. | ||
*** {{nbt|boolean|dispensable}}: Whether the item can be dispensed by using a [[Minecraft:dispenser]].<ref group="note">If the item type has special dispenser behavior, this has no effect.</ref> Defaults to <code>true</code>. | *** {{nbt|boolean|dispensable}}: Whether the item can be dispensed by using a [[Minecraft:dispenser]].<ref group="note">If the item type has special dispenser behavior, this has no effect.</ref> Defaults to <code>true</code>. | ||
Latest revision as of 11:04, 23 May 2026
- Template:Nbt: If present, this item can be equipped in the specified slot.
- Template:Nbt: The slot to put the item on. Can be one of Template:Cd
- Template:NbtTemplate:Nbt: Template:Json ref to play when the item is equipped. Defaults to
item.armor.equip_generic. - Template:Nbt: The Minecraft:resource location of the Minecraft:equipment model to use when equipped. The directory this refers to is
assets/<namespace>/equipment/<id>.json. If not specified, falls back to rendering as the item itself when in the head slot (if not applicable, the item does not render). - Template:NbtTemplate:Nbt: Entity ID, Entity Tag, or list of Entity IDs to limit which entities can equip this item. Defaults to all entities.
- Template:Nbt: Whether the item can be dispensed by using a Minecraft:dispenser.<ref group="note">If the item type has special dispenser behavior, this has no effect.</ref> Defaults to
true. - Template:Nbt: Whether the item can be equipped into the relevant slot by right-clicking. Defaults to
true. - Template:Nbt: Whether this item is damaged when the wearing entity is damaged. Defaults to
true. - Template:Nbt: Whether this item can be equipped onto a target mob by pressing Template:Control on it (as long as this item can be equipped on the target at all). Defaults to
false. - Template:Nbt: The Minecraft:resource location of the overlay texture to use when equipped. The directory this refers to is
assets/<namespace>/textures/<id>. Assets which do not exist will use the Minecraft:missing texture, rather than falling back to a default such as the pumpkin overlay. - Template:Nbt: Whether this item can be unequipped from a target mob by right-clicking with Shears. Defaults to
false. - Template:NbtTemplate:Nbt: Template:Json ref to play when the item is sheared. Defaults to
item.shears.snip.
- Template:Nbt: If present, this item can be equipped in the specified slot.
Notes
Template:Notelist Minecraft:fr:Format de composant de données/equippable Minecraft:ja:アイテムフォーマット/equippable