Files
minecraft-bedrock-json-schemas/source/behavior/entities/1.8.0/components/minecraft.equippable.json

54 lines
2.0 KiB
JSON
Raw Normal View History

2021-06-06 10:07:19 +00:00
{
2021-09-15 11:20:56 +02:00
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.equippable",
2021-06-06 10:07:19 +00:00
"type": "object",
2021-09-15 11:20:56 +02:00
"title": "Equippable 1.16.0",
2021-06-06 10:07:19 +00:00
"additionalProperties": false,
2021-09-15 11:20:56 +02:00
"description": "Defines an entity's behavior for having items equipped to it.",
2021-06-06 10:07:19 +00:00
"properties": {
"slots": {
"description": "List of slots and the item that can be equipped",
"type": "array",
2021-09-15 11:20:56 +02:00
"title": "Slots",
2021-06-06 10:07:19 +00:00
"items": {
"description": "A slot and the item that can be equipped",
2021-09-15 11:20:56 +02:00
"title": "Slots",
2021-06-06 10:07:19 +00:00
"type": "object",
"properties": {
2021-09-15 11:20:56 +02:00
"slot": { "type": "integer", "default": 0, "description": "The slot number of this slot.", "title": "Slot" },
2021-06-06 10:07:19 +00:00
"accepted_items": {
"type": "array",
2021-09-15 11:20:56 +02:00
"description": "The list of items that can go in this slot.",
"title": "Accepted Items",
2021-06-06 10:07:19 +00:00
"items": {
"type": "string",
"description": "A item name",
"$ref": "../../../../general/item/identifier.json",
"title": "Accepted Items"
2021-09-15 11:20:56 +02:00
}
},
"item": {
"$ref": "../../../../general/item/identifier.json",
"description": "Identifier of the item that can be equipped for this slot.",
"title": "Item"
2021-06-06 10:07:19 +00:00
},
"interact_text": {
"type": "string",
2021-09-15 11:20:56 +02:00
"description": "Text to be displayed when the entity can be equipped with this item when playing with Touch-screen controls.",
2021-06-06 10:07:19 +00:00
"title": "Interact Text"
},
"on_equip": {
2021-09-15 11:12:30 +02:00
"$ref": "../types/event.json",
2021-09-15 11:20:56 +02:00
"description": "Event to trigger when this entity is equipped with this item.",
2021-06-06 10:07:19 +00:00
"title": "On Equip"
},
"on_unequip": {
2021-09-15 11:12:30 +02:00
"$ref": "../types/event.json",
2021-09-15 11:20:56 +02:00
"description": "Event to trigger when this item is removed from this entity.",
2021-06-06 10:07:19 +00:00
"title": "On Unequip"
}
2021-09-15 11:20:56 +02:00
}
}
2021-06-06 10:07:19 +00:00
}
}
}