Appearance
helix / PlayerSpec
Interface: PlayerSpec โ
Defined in: core/values/predicate/types/type-specific.ts:7
Player-only facts.
Properties โ
advancements? โ
optionaladvancements?: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? โ
optionalfood?:object
Defined in: core/values/predicate/types/type-specific.ts:31
Hunger. 26.1+.
level? โ
optionallevel?:Bound
saturation? โ
optionalsaturation?:Bound
gamemode? โ
Defined in: core/values/predicate/types/type-specific.ts:9
One mode, or a list since 1.21.
input? โ
optionalinput?:object
Defined in: core/values/predicate/types/type-specific.ts:21
Movement keys held. 1.21.2+.
backward? โ
optionalbackward?:boolean
forward? โ
optionalforward?:boolean
jump? โ
optionaljump?:boolean
left? โ
optionalleft?:boolean
right? โ
optionalright?:boolean
sneak? โ
optionalsneak?:boolean
sprint? โ
optionalsprint?:boolean
level? โ
optionallevel?:Bound
Defined in: core/values/predicate/types/type-specific.ts:11
Experience level.
lookingAt? โ
optionallookingAt?:EntityPredicateSpec
Defined in: core/values/predicate/types/type-specific.ts:19
The entity the player looks at.
recipes? โ
optionalrecipes?:Record<string,boolean>
Defined in: core/values/predicate/types/type-specific.ts:15
Recipe id to unlocked.
stats? โ
optionalstats?: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