ItemComponent - Equippable Component Apply (Section) — SkBee
Addon: SkBee · Category: Section · Since: 3.8.0
Syntax
apply equippable [component] to %itemstacks/itemtypes/slots%Description
Apply an equippable component to any item so it can be equipped in the specified slot. Requires Paper 1.21.3+ See [**Equippable Component**](https://minecraft.wiki/w/Data_component_format#equippable) on McWiki for more info.
**Entries**: - `slot` = The slot the item can be put on (See Equipment Slot). - `equip_sound` = The sound to be played when equipped. [Optional] - `asset_id` = The key of the equipment model to use when equipped. [Optional] - `allowed_entities` = A list of entity types or a Minecraft entity tag that can equip this item. [Optional] - `dispensable` = Whether the item can be dispensed by using a dispenser. Defaults to true. [Optional] - `swappable` = Whether the item can be equipped into the relevant slot by right-clicking. Defaults to true. [Optional] - `damage_on_hurt` = Whether this item is damaged when the wearing entity is damaged. Defaults to true. [Optional] - `camera_overlay` = The key of the overlay texture to use when equipped. [Optional]
Examples
apply equippable component to {_item}:
slot: hand_slot
equip_sound: "entity.player.burp"
asset_id: "my_pack:some_asset"
allowed_entities: player, evoker, zombie # Shown as list of entity types.
allowed_entities: minecraft entity tag "undead" # Shown as Minecraft entity tag
dispensable: false
swappable: true
damage_on_hurt: true
camera_overlay: "my_pack:some_overlay"