Files

57 lines
1.8 KiB
JSON
Raw Permalink Normal View History

2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id": "blockception.minecraft.behavior.entities.minecraft.inventory",
2021-10-08 12:59:03 +02:00
"description": "Defines this entity's inventory properties.",
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Inventory",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"properties": {
"additional_slots_per_strength": {
"type": "integer",
"default": 0,
2022-07-22 19:41:04 +02:00
"description": "Number of slots that this entity can gain per extra strength.",
2021-10-08 12:59:03 +02:00
"title": "Additional Slots Per Strength"
},
"can_be_siphoned_from": {
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "If true, the contents of this inventory can be removed by a hopper.",
2021-10-08 12:59:03 +02:00
"title": "Can Be Siphoned From"
},
"container_type": {
"type": "string",
"default": "none",
"description": "Type of container this entity has. Can be horse, minecart_chest, chest_boat, minecart_hopper, inventory, container or hopper",
2021-10-08 12:59:03 +02:00
"title": "Container Type",
"enum": ["horse", "minecart_chest", "chest_boat", "minecart_hopper", "inventory", "container", "hopper"]
2021-10-08 12:59:03 +02:00
},
2021-10-11 18:10:42 +02:00
"inventory_size": {
"type": "integer",
"default": 5,
2022-07-22 19:41:04 +02:00
"description": "Number of slots the container has.",
2021-10-11 18:10:42 +02:00
"title": "Inventory Size"
},
"private": {
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "If true, only the entity can access the inventory.",
2021-10-11 18:10:42 +02:00
"title": "Private"
},
2021-10-08 12:59:03 +02:00
"restrict_to_owner": {
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "If true, the entity's inventory can only be accessed by its owner or itself.",
2021-10-08 12:59:03 +02:00
"title": "Restrict To Owner"
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"additional_slots_per_strength": 0,
"can_be_siphoned_from": false,
"container_type": "none",
"inventory_size": 5,
"private": false,
"restrict_to_owner": false
}
]
2021-10-08 12:59:03 +02:00
}