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

helix / PlayerSpec

Interface: PlayerSpec โ€‹

Defined in: core/values/predicate/types/type-specific.ts:7

Player-only facts.

Properties โ€‹

advancements? โ€‹

optional advancements?: Record<string, boolean | Record<string, boolean>>

Defined in: core/values/predicate/types/type-specific.ts:13

Advancement id to done, or to a map of criterion to done.


food? โ€‹

optional food?: object

Defined in: core/values/predicate/types/type-specific.ts:31

Hunger. 26.1+.

level? โ€‹

optional level?: Bound

saturation? โ€‹

optional saturation?: Bound


gamemode? โ€‹

optional gamemode?: Gamemode | Gamemode[]

Defined in: core/values/predicate/types/type-specific.ts:9

One mode, or a list since 1.21.


input? โ€‹

optional input?: object

Defined in: core/values/predicate/types/type-specific.ts:21

Movement keys held. 1.21.2+.

backward? โ€‹

optional backward?: boolean

forward? โ€‹

optional forward?: boolean

jump? โ€‹

optional jump?: boolean

left? โ€‹

optional left?: boolean

optional right?: boolean

sneak? โ€‹

optional sneak?: boolean

sprint? โ€‹

optional sprint?: boolean


level? โ€‹

optional level?: Bound

Defined in: core/values/predicate/types/type-specific.ts:11

Experience level.


lookingAt? โ€‹

optional lookingAt?: EntityPredicateSpec

Defined in: core/values/predicate/types/type-specific.ts:19

The entity the player looks at.


recipes? โ€‹

optional recipes?: Record<string, boolean>

Defined in: core/values/predicate/types/type-specific.ts:15

Recipe id to unlocked.


stats? โ€‹

optional stats?: object[]

Defined in: core/values/predicate/types/type-specific.ts:17

Statistic checks, e.g. { type: "minecraft:custom", stat: "minecraft:jump", value: { min: 1 } }.

stat โ€‹

stat: string | IdValue

type โ€‹

type: string | IdValue

value โ€‹

value: Bound

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