Entity Documentation - minecraft:inventory
minecraft:inventory
defines how an entity's inventory is managed.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
additional_slots_per_strength | 0 | Integer | Number of slots that this entity can gain per extra strength |
can_be_siphoned_from | False | Boolean | If true, the contents of this inventory can be removed by a hopper |
container_type | none | String | Type of container the entity has. Can be horse, minecart_chest, chest_boat, minecart_hopper, inventory, container or hopper |
inventory_size | 5 | Integer | Number of slots the container has |
private | False | Boolean | If true, the entity will not drop its inventory on death |
restrict_to_owner | False | Boolean | If true, the entity's inventory can only be accessed by its owner or itself |
Example
"minecraft:inventory":{
"additional_slots_per_strength": 0,
"can_be_siphoned_from": false,
"container_type": ,
"inventory_size": 5,
"private": false,
"restrict_to_owner": false
}
Vanilla entities examples
chest_minecart
"minecraft:inventory": {
"container_type": "minecart_chest",
"inventory_size": 27,
"can_be_siphoned_from": true
}