Skip to main content

Item Slot (Data Type)

A String that names a slot of an entity's or a container's inventory.

tip

Use the container.<slot_number> slots for the slots of an apoli:inventory power.

Slots

NameValid <slot_number>Mapped index
armor.chest102
armor.feet100
armor.head103
armor.legs101
container.<slot_number>0 to 530 to 53
enderchest.<slot_number>0 to 26200 to 226
horse.<slot_number>0 to 14500 to 514
horse.armor401
horse.saddle400
hotbar.<slot_number>0 to 80 to 8
inventory.<slot_number>0 to 269 to 35
villager.<slot_number>0 to 7300 to 307
weapon.mainhand98
weapon.offhand99
weapon98

Examples

"slot": "weapon.mainhand"

This is the entity's main hand slot.

"slots": [
    "container.0",
    "container.1",
    "container.2",
    "container.3",
    "container.4",
    "container.5",
    "container.6",
    "container.7",
    "container.8"
]

These are slots 0 to 8 of a container. They can also stand for a player's hotbar slots 0 to 8, since those map to the same indices.