Skip to content

@minecraft/server


@minecraft/server / BlockType

Class: BlockType ​

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

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 ​

id ​

readonly id: string

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

Remarks ​

Block type name - for example, minecraft:acacia_stairs.


localizationKey ​

readonly localizationKey: string

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

Remarks ​

Key for the localization of this BlockType's name used in .lang files.