World / Server paper/get_block

Get Block

Gets the material and state of a block at a given location.

Note: Compare the material output to the name output of a Material node to check for a specific block type.

Inputs

NameTypeOptionalDescription
location location Block location.

Outputs

NameTypeDescription
material string Material name (e.g. STONE).
isAir boolean True if the block is air.