Minecraft:Data component format/equippable: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| Line 4: | Line 4: | ||
*** {{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|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: | *** {{nbt|string|asset_id}}: The [[Minecraft:identifier]] 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>. | ||
| Line 10: | Line 10: | ||
*** {{nbt|boolean|damage_on_hurt}}: Whether this item is damaged when the wearing entity is damaged. Defaults to <code>true</code>. | *** {{nbt|boolean|damage_on_hurt}}: Whether this item is damaged when the wearing entity is damaged. Defaults to <code>true</code>. | ||
*** {{nbt|boolean|equip_on_interact}}: Whether this item can be equipped onto a target mob by pressing {{control|use}} on it (as long as this item can be equipped on the target at all). Defaults to <code>false</code>. | *** {{nbt|boolean|equip_on_interact}}: Whether this item can be equipped onto a target mob by pressing {{control|use}} on it (as long as this item can be equipped on the target at all). Defaults to <code>false</code>. | ||
*** {{nbt|string|camera_overlay}}: The [[Minecraft: | *** {{nbt|string|camera_overlay}}: The [[Minecraft:identifier]] 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. See [[Minecraft:Hardcoded_item_properties_(Java_Edition)#sheared|here]] for more details. 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. See [[Minecraft:Hardcoded_item_properties_(Java_Edition)#sheared|here]] for more details. Defaults to <code>false</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|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>. | ||
Revision as of 11:12, 19 October 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:identifier 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:identifier 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. See here for more details. 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