Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / SLOTS

Variable: SLOTS โ€‹

const SLOTS: object

Defined in: core/values/predicate/types/slots.ts:41

Common slot ranges by name. Any other SlotRange also works.

Type Declaration โ€‹

readonly HEAD: "armor.head" = "armor.head"

The helmet slot - what a worn player head occupies.

HOTBAR โ€‹

readonly HOTBAR: "hotbar.*" = "hotbar.*"

The nine hotbar slots.

INVENTORY โ€‹

readonly INVENTORY: "container.*" = "container.*"

Every slot of a player's inventory, hotbar included.

MAIN โ€‹

readonly MAIN: "inventory.*" = "inventory.*"

The 27 slots of the main inventory grid.

OFFHAND โ€‹

readonly OFFHAND: "weapon.offhand" = "weapon.offhand"

The offhand.

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.