Function of Game
game.block
Returns one block in this version's numbers, or nil for a name this game has no word for.
game.block(name: string) → Block?
Parameters
namestringReturns
Block?Used in
- Queries (`game.block(name)`, the block an entity stands on) return `nil` forAPI basics`game.block(name)` returns one block in **this version's** numbers, or `nil`Game datalocal stone = game.block("stone")Game dataitself leaves no item. `game.block(name).drops = true` switches one block ofRoom rules