Minecraft:Data component format/equippable: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| Line 2: | Line 2: | ||
** {{nbt|compound|minecraft:equippable}}: If present, this item can be equipped in the specified slot. | ** {{nbt|compound|minecraft:equippable}}: If present, this item can be equipped in the specified slot. | ||
*** {{nbt|string|slot}}: The slot to put the item on. Can be one of {{cd|head|chest|legs|feet|body|mainhand|offhand|d=or|saddle}} | *** {{nbt|string|slot}}: The slot to put the item on. Can be one of {{cd|head|chest|legs|feet|body|mainhand|offhand|d=or|saddle}} | ||
*** {{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|server-side 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 [[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|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). | ||
| Line 12: | Line 12: | ||
*** {{nbt|string|camera_overlay}}: The [[Minecraft:resource location]] of the overlay texture to use when equipped. The directory this refers to is <code>assets/<namespace>/textures/<id></code>. Assets which do not exist will use the [[Minecraft:missing texture]], rather than falling back to a default such as the pumpkin overlay. | *** {{nbt|string|camera_overlay}}: The [[Minecraft:resource location]] of the overlay texture to use when equipped. The directory this refers to is <code>assets/<namespace>/textures/<id></code>. Assets which do not exist will use the [[Minecraft:missing texture]], rather than falling back to a default such as the pumpkin overlay. | ||
*** {{Nbt|boolean|can_be_sheared}}: Whether this item can be unequipped from a target mob by right-clicking with Shears. Defaults to <code>false</code>. | *** {{Nbt|boolean|can_be_sheared}}: Whether this item can be unequipped from a target mob by right-clicking with Shears. Defaults to <code>false</code>. | ||
*** {{Nbt|string}}{{Nbt|compound|shearing_sound}}: {{Json ref|sound event|inline=1}} to play when the item is sheared. Defaults to <code>item.shears.snip</code>. | *** {{Nbt|string}}{{Nbt|compound|shearing_sound}}: {{Json ref|server-side sound event|inline=1}} to play when the item is sheared. Defaults to <code>item.shears.snip</code>. | ||
**** {{nbt inherit/sound event|sounds}} | |||
</onlyinclude> | </onlyinclude> | ||
</div><noinclude> | </div><noinclude> | ||
| Line 19: | Line 20: | ||
{{notelist}} | {{notelist}} | ||
[[Minecraft:fr:Format de composant de données/equippable]] | [[Minecraft:fr:Format de composant de données/equippable]] | ||
[[Minecraft:ja: | [[Minecraft:ja:データコンポーネント/equippable]] | ||
</noinclude> | </noinclude> | ||
[[Category:Data component format subpages]] | [[Category:Data component format subpages]] | ||
Latest revision as of 11:46, 20 July 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