BlockType Class

The type (or template) of a block. Does not contain permutation data (state) other than the type of block it represents. This type was introduced as of version 1.17.10.21.

Properties

canBeWaterlogged

read-only canBeWaterlogged: boolean;

Represents whether this type of block can be waterlogged.

Type: boolean

Caution

This property is still in pre-release. Its signature may change or it may be removed in future releases.

id

read-only id: string;

Block type name - for example, minecraft:acacia_stairs.

Type: string

Caution

This property is still in pre-release. Its signature may change or it may be removed in future releases.