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

helix / LocationSpec

Interface: LocationSpec โ€‹

Defined in: core/values/predicate/types/location.ts:12

Location facts an EntityPredicate.location / location_check can assert.

Properties โ€‹

biome? โ€‹

optional biome?: IdList<Biome>

Defined in: core/values/predicate/types/location.ts:14

Biome id, tag or list, e.g. Biome.PLAINS. Tags and lists need 1.20.5+.


block? โ€‹

optional block?: BlockValue<string>

Defined in: core/values/predicate/types/location.ts:20

The block at the location: id or tag, plus state and block-entity data.


canSeeSky? โ€‹

optional canSeeSky?: boolean

Defined in: core/values/predicate/types/location.ts:28

Full sky light. 1.21+.


dimension? โ€‹

optional dimension?: string | Dimension

Defined in: core/values/predicate/types/location.ts:16

Dimension id, e.g. Dimension.THE_NETHER.


fluid? โ€‹

optional fluid?: FluidSpec

Defined in: core/values/predicate/types/location.ts:22

The fluid at the location.


light? โ€‹

optional light?: Bound

Defined in: core/values/predicate/types/location.ts:24

Light level, max(sky, block).


position? โ€‹

optional position?: object

Defined in: core/values/predicate/types/location.ts:30

Coordinate bounds (x/y/z).

x? โ€‹

optional x?: Bound

y? โ€‹

optional y?: Bound

z? โ€‹

optional z?: Bound


smokey? โ€‹

optional smokey?: boolean

Defined in: core/values/predicate/types/location.ts:26

Within 5 blocks above a campfire. 1.16+.


structure? โ€‹

optional structure?: IdList<Structure>

Defined in: core/values/predicate/types/location.ts:18

Structure id, tag or list. Tags and lists need 1.20.5+.

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