@minecraft/server / BlockComponentTypes
Enumeration: BlockComponentTypes ​
Defined in: @minecraft/server/index.d.ts:48
The types of block components that are accessible via function Block.getComponent.
Enumeration Members ​
FluidContainer ​
FluidContainer:
"minecraft:fluid_container"
Defined in: @minecraft/server/index.d.ts:49
Inventory ​
Inventory:
"minecraft:inventory"
Defined in: @minecraft/server/index.d.ts:56
Remarks ​
Represents the inventory of a block in the world. Used with blocks like chests.
MapColor ​
MapColor:
"minecraft:map_color"
Defined in: @minecraft/server/index.d.ts:62
Remarks ​
Represents the color of a block when displayed on a map.
Movable ​
Movable:
"minecraft:movable"
Defined in: @minecraft/server/index.d.ts:68
Remarks ​
Represents a block that can move (such as a piston).
Piston ​
Piston:
"minecraft:piston"
Defined in: @minecraft/server/index.d.ts:75
Remarks ​
When present, this block has piston-like behavior. Contains additional properties for discovering block piston state.
PrecipitationInteractions ​
PrecipitationInteractions:
"minecraft:precipitation_interactions"
Defined in: @minecraft/server/index.d.ts:82
Remarks ​
Represents a how a block interacts with precipitation (such as rain or snow).
RecordPlayer ​
RecordPlayer:
"minecraft:record_player"
Defined in: @minecraft/server/index.d.ts:88
Remarks ​
Represents a block that can play a record.
RedstoneProducer ​
RedstoneProducer:
"minecraft:redstone_producer"
Defined in: @minecraft/server/index.d.ts:94
Remarks ​
Represents a block that can output a redstone signal.
Sign ​
Sign:
"minecraft:sign"
Defined in: @minecraft/server/index.d.ts:100
Remarks ​
Represents a block that can display text on it.