Interface SpecialType

Special types are used to set properties to the block. Unlike items, blocks properties are defined using special types, due to old Inner Core's block IDs limitations.

interface SpecialType {
    base?: number;
    can_be_extra_block?: boolean;
    can_contain_liquid?: boolean;
    color_source?: ColorSource;
    destroytime?: number;
    explosionres?: number;
    friction?: number;
    lightlevel?: number;
    lightopacity?: number;
    mapcolor?: number;
    material?: number;
    name?: string;
    renderallfaces?: boolean;
    renderlayer?: number;
    rendertype?: number;
    solid?: boolean;
    sound?: Sound;
    translucency?: number;
}

Properties

base?: number

Vanilla block ID to inherit some of the properties.

0
can_be_extra_block?: boolean

Whether or not block may overlay different block, like water overlapping fillable blocks.

false

2.2.1b95

can_contain_liquid?: boolean

Whether or not block may filled by water bucket or other custom fillable liquids.

false

2.2.1b95

color_source?: ColorSource

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

2.1.0b56

destroytime?: number

Specifies the time required to destroy the block, in ticks.

explosionres?: number

Specifies how block resists to the explosions.

3
friction?: number

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

0.6000000238418579
lightlevel?: number

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

0
lightopacity?: number

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

0
mapcolor?: number

Block color when displayed on the vanilla maps.

2.0.2b23

material?: number

Block material constant to be inherited.

3
name?: string

Unique string identifier of the SpecialType.

renderallfaces?: boolean

If true, all block faces are rendered, otherwise back faces are not rendered, like for glass.

false
renderlayer?: number

Specifies the layer that is used to render the block.

4
rendertype?: number

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

0
solid?: boolean

If true, the block is not transparent.

false
sound?: Sound

Specifies sounds of the block, one of Block.Sound.

2.0.2b25

translucency?: number

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

0

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.