[Block]|[nil] block = dimension.getRuntimeBlock(name, data, serverSided)


Gets a runtime block by its name, you should include the namespace in this one e.g. minecraft:stone

Parameters


name

string

The name of the block

data

integer | "number | "nil

The data of the block (can change rotation, color and more, for different states go through the whole list), defaults to 0

serverSided

boolean | "nil

(default: false) Should we get the server one (likely unstable outside of the LocalServerUpdate event)

Return Value


block

Block | nil

The runtime block or nil if not found