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

helix / BlockStates

Type Alias: BlockStates โ€‹

BlockStates = Record<string, string | number | boolean>

Defined in: core/values/block.ts:23

A block with optional state properties and block-entity data:

Block("stone") -> "minecraft:stone" Block("furnace", { facing: "north" }) -> "minecraft:furnace[facing=north]" Block("furnace").state({ facing: "north" }) -> "minecraft:furnace[facing=north]" Block("chest").data('{Lock:"key"}') -> 'minecraft:chest{Lock:"key"}' Block("#logs") -> "#minecraft:logs" (predicate tag)

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