Skip to content

@minecraft/server


@minecraft/server / BlockStateType

Class: BlockStateType ​

Defined in: @minecraft/server/index.d.ts:5743

Represents a configurable state value of a block instance. For example, the facing direction of stairs is accessible as a block state.

Properties ​

id ​

readonly id: string

Defined in: @minecraft/server/index.d.ts:5750

Remarks ​

Identifier of the block property.


validValues ​

readonly validValues: (string | number | boolean)[]

Defined in: @minecraft/server/index.d.ts:5756

Remarks ​

A set of valid values for the block property.