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

helix / BlockPredicate

Variable: BlockPredicate โ€‹

BlockPredicate: object

Defined in: core/values/worldgen/block-predicate.ts:9

Type Declaration โ€‹

allOf โ€‹

allOf: (predicates) => JsonValue<"block_predicate">

Parameters โ€‹

predicates โ€‹

readonly BlockPredicate[]

Returns โ€‹

JsonValue<"block_predicate">

alwaysTrue โ€‹

alwaysTrue: () => JsonValue<"block_predicate">

Always matches (vanilla's true).

Returns โ€‹

JsonValue<"block_predicate">

anyOf โ€‹

anyOf: (predicates) => JsonValue<"block_predicate">

Parameters โ€‹

predicates โ€‹

readonly BlockPredicate[]

Returns โ€‹

JsonValue<"block_predicate">

hasSturdyFace โ€‹

hasSturdyFace: (f) => JsonValue<"block_predicate">

The block's direction face is sturdy.

Parameters โ€‹

f โ€‹

Offset & object

Returns โ€‹

JsonValue<"block_predicate">

heightRange โ€‹

heightRange: (f) => JsonValue<"block_predicate">

Parameters โ€‹

f โ€‹
maxInclusive โ€‹

VerticalAnchor

minInclusive โ€‹

VerticalAnchor

Returns โ€‹

JsonValue<"block_predicate">

insideWorldBounds โ€‹

insideWorldBounds: (f) => JsonValue<"block_predicate">

Parameters โ€‹

f? โ€‹

Offset = {}

Returns โ€‹

JsonValue<"block_predicate">

matchingBiomes โ€‹

matchingBiomes: (biomes) => JsonValue<"block_predicate">

Parameters โ€‹

biomes โ€‹

Biome | readonly Biome[]

Returns โ€‹

JsonValue<"block_predicate">

matchingBlocks โ€‹

matchingBlocks: (f) => JsonValue<"block_predicate">

Blocks, or a tag.

Parameters โ€‹

f โ€‹

Offset & object

Returns โ€‹

JsonValue<"block_predicate">

matchingBlockTag โ€‹

matchingBlockTag: (f) => JsonValue<"block_predicate">

tag is a block tag, e.g. Block.tag(BLOCK_TAGS.LOGS).

Parameters โ€‹

f โ€‹

Offset & object

Returns โ€‹

JsonValue<"block_predicate">

matchingFluids โ€‹

matchingFluids: (f) => JsonValue<"block_predicate">

Parameters โ€‹

f โ€‹

Offset & object

Returns โ€‹

JsonValue<"block_predicate">

not โ€‹

not: (predicate) => JsonValue<"block_predicate">

Parameters โ€‹

predicate โ€‹

BlockPredicate

Returns โ€‹

JsonValue<"block_predicate">

replaceable โ€‹

replaceable: (f) => JsonValue<"block_predicate">

The block can be replaced, like air, grass or water.

Parameters โ€‹

f? โ€‹

Offset = {}

Returns โ€‹

JsonValue<"block_predicate">

solid โ€‹

solid: (f) => JsonValue<"block_predicate">

The block is solid.

Parameters โ€‹

f? โ€‹

Offset = {}

Returns โ€‹

JsonValue<"block_predicate">

unobstructed โ€‹

unobstructed: (f) => JsonValue<"block_predicate">

No entity is in the block's space.

Parameters โ€‹

f? โ€‹
offset? โ€‹

readonly [number, number, number]

Returns โ€‹

JsonValue<"block_predicate">

volumeMatch โ€‹

volumeMatch: (f) => JsonValue<"block_predicate">

Every block in the box from offset min to max matches match.

Parameters โ€‹

f โ€‹
match โ€‹

BlockPredicate

max โ€‹

readonly [number, number, number]

min โ€‹

readonly [number, number, number]

Returns โ€‹

JsonValue<"block_predicate">

wouldSurvive โ€‹

wouldSurvive: (f) => JsonValue<"block_predicate">

state could stay placed here.

Parameters โ€‹

f โ€‹

Offset & object

Returns โ€‹

JsonValue<"block_predicate">

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