Block Reader¶
This block is able to read data about any blocks or tile entities in front of it.
Peripheral Name | Interfaces with | Has events | Introduced in |
---|---|---|---|
blockReader | Blocks | No | 0.7r |
Functions¶
getBlockName¶
getBlockName() -> string
Returns the registry name of the block (ex. minecraft:dirt
)
1 2 3 |
|
getBlockData¶
getBlockData() -> table | nil
Returns the block data of the block if block is a tile entity.
1 2 3 4 5 6 |
|
Added in version 1.19.2-0.7.33r | 1.20.1-0.7.37r
getBlockStates¶
getBlockStates() -> table | nil
Returns the properties of a block and its state
Added in version 1.19.2-0.7.33r | 1.20.1-0.7.37r
isTileEntity¶
isTileEntity() -> boolean | nil
Returns true whether the block is a tile entity or not
Changelog/Trivia¶
1.19.2-0.7.33r/1.20.1-0.7.37r
Added getBlockStates
and isTileEntity
0.7r
Added the Block Reader peripheral.