Returns a block with the specified id.
obj getBlockById(const float BLOCK)
Modifiers: const
Type: float
Id of the block, one of BLOCK.
- The id of a block can be get by placing the block at (0, 0, 0) and running log(getBlock(0, 0, 0)) in the EditorScript.
- EditorScript cannot connect wires to blocks, so if you are using it as the builder, you will have to connect the object wire to the block manually.
obj dirt = getBlockById(BLOCK_DIRT)