Appearance
helix / Slot
Variable: Slot โ
constSlot:object
Defined in: core/values/enums.ts:163
Typed slot names for item replace/item modify, e.g. Slot.MAINHAND. Use container(n)/hotbar(n) for indexed slots.
Type Declaration โ
CHEST โ
readonlyCHEST:"armor.chest"="armor.chest"
container โ
readonlycontainer: (n) =>SlotRange
container.<n> - a slot in the target's container (chest, player inventory).
Parameters โ
n โ
number
Returns โ
CONTENTS โ
readonlyCONTENTS:"contents"="contents"
contents - the one item an item display, item frame or dropped item holds.
crafting โ
readonlycrafting: (n) =>SlotRange
player.crafting.<n> - a player's 2x2 inventory crafting grid, 0-3.
Parameters โ
n โ
number
Returns โ
CURSOR โ
readonlyCURSOR:"player.cursor"="player.cursor"
player.cursor - the item a player is carrying with the mouse in an open screen.
FEET โ
readonlyFEET:"armor.feet"="armor.feet"
HEAD โ
readonlyHEAD:"armor.head"="armor.head"
hotbar โ
readonlyhotbar: (n) =>SlotRange
hotbar.<n> - a player's hotbar slot 0-8.
Parameters โ
n โ
number
Returns โ
inventory โ
readonlyinventory: (n) =>SlotRange
inventory.<n> - a player's main inventory (the 27 slots above the hotbar), 0-26.
Parameters โ
n โ
number
Returns โ
LEGS โ
readonlyLEGS:"armor.legs"="armor.legs"
MAINHAND โ
readonlyMAINHAND:"weapon.mainhand"="weapon.mainhand"
OFFHAND โ
readonlyOFFHAND:"weapon.offhand"="weapon.offhand"