Entity Documentation - minecraft:equippable

minecraft:equippable defines an entity's behavior for having items equipped to it.

Parameters

Name Default Value Type Description
slots not set List List of slots and the item that can be equipped.

slots

slots is a list defined by six parameters. Each item has the following properties:

Name Default Value Type Description
accepted_items not set List The list of items that can fill this slot.
interact_text not set String Text to be displayed while playing with touch-screen controls when the entity can be equipped with this item.
item not set String Identifier of the item that can be equipped for the slot.
on_equip not set JSON Object Event to trigger when the entity is equipped with the item.
on_unequip not set JSON Object Event to trigger when the item is removed from the entity.
slot 0 Integer The slot number of this slot.

Example

"minecraft:equippable":{
    "slots": [
        {        
            "slot": 0,
            "item": "saddle",
            "accepted_items": [ "saddle" ],
            "on_equip": {
                "event": "minecraft:horse_saddled"
            },
            "on_unequip": {
                "event": "minecraft:horse_unsaddled"
            }
        }
    ]
}

Vanilla entities examples

horse

"minecraft:equippable": {
        "slots": [
          {
            "slot": 0,
            "item": "saddle",
            "accepted_items": [ "saddle" ],
            "on_equip": {
              "event": "minecraft:horse_saddled"
            },
            "on_unequip": {
              "event": "minecraft:horse_unsaddled"
            }
          },
          {
            "slot": 1,
            "item": "horsearmoriron",
            "accepted_items": [
              "horsearmorleather",
              "horsearmoriron",
              "horsearmorgold",
              "horsearmordiamond"
            ]
          }
        ]
      },

Vanilla entities using minecraft:equippable