Перейти к основному содержанию

BlockType

Object representing common block properties.

Index

Properties

optionalbaseBlock

baseBlock?: number

Vanilla block ID to inherit some of the properties. Default is 0

optionalcolorSource

colorSource?: ColorSource

Makes block use biome color source when displayed on the vanilla maps

optionaldestroyTime

destroyTime?: number

Specifies the time required to destroy the block, in ticks

optionalexplosionResistance

explosionResistance?: number

Specifies how block resists to the explosions. Default value is 3

optionalextends

extends?: string

Block type to inherit properties

optionalfriction

friction?: number

Specifies how player walks on this block. The higher the friction is, the more difficult it is to change speed and direction. Default value is 0.6000000238418579

optionallightLevel

lightLevel?: number

If non-zero value is used, the block emits light of that value. Default is 0, use values from 1 to 15 to set light level

optionallightOpacity

lightOpacity?: number

Specifies how opaque the block is. Default is 0 (transparent), use values from 1 to 15 to make the block opaque

optionalmapColor

mapColor?: number

Block color when displayed on the vanilla maps

optionalmaterial

material?: number

Block material constant. Default is 3

optionalrenderAllFaces

renderAllFaces?: boolean

If true, all block faces are rendered, otherwise back faces are not rendered (for optimization purposes). Default is false

optionalrenderLayer

renderLayer?: number

Specifies the layer that is used to render the block. Default is 4

optionalrenderType

renderType?: number

Sets render type of the block. Default is 0 (full block), use other values to change block's shape

optionalsolid

solid?: boolean

If true, the block is not transparent. Default is false

optionalsound

sound?: Sound

Specifies sounds of the block

optionaltranslucency

translucency?: number

If non-zero value is used, the shadows will be rendered on the block. Default is 0, allows float values from 0 to 1