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

helix / SlotRange

Type Alias: SlotRange โ€‹

SlotRange = `container.${number}` | `enderchest.${number}` | `horse.${number}` | `hotbar.${number}` | `inventory.${number}` | `villager.${number}` | `mob.inventory.${number}` | `player.crafting.${number}` | "armor.head" | "armor.chest" | "armor.legs" | "armor.feet" | "armor.body" | "horse.chest" | "horse.armor" | "horse.saddle" | "saddle" | "weapon" | "weapon.mainhand" | "weapon.offhand" | "contents" | "player.cursor" | "armor.*" | "container.*" | "enderchest.*" | "horse.*" | "hotbar.*" | "inventory.*" | "player.crafting.*" | "weapon.*" | "mob.inventory.*"

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

Every slot name accepted in EntityPredicateSpec.slots.

A closed union because an unknown name makes Minecraft reject the whole predicate file, silently in game. Includes names from every version.

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