BlockType¶
Represents the type of a block, including its unique identifier and name.
Example: Comparing BlockType with a String Identifier
local block = someSpell.block -- Get the block at a certain position
if block.type.id == "dirt" then
print("This block is dirt!")
end
Fields¶
id: string — Read-Only¶
The unique identifier for the block type (e.g., "stone", "dirt").
name: string — Read-Only¶
The human-readable name of the block type.