Item Slot (Data Type)

A String that represents a slot from an entity or container's inventory.

A String that represents a slot from an entity or container’s inventory.

It’s recommended to use the container.<slot_number> item slots for representing the slots of a power that uses the apoli:inventory

Table

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 example represents the mainhand slot of the entity.

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

This example represents slots 0 to 8 of a container. It may be used to represent the hotbar slots 0 to 8 of a player, considering that the mappings have the same mapped index.