Fills an area with a specific block. This is an area-limited extended block helper.
| Name | Type | Description |
|---|---|---|
x1, y1, z1 | number | Starting coordinates. |
x2, y2, z2 | number | Ending coordinates. |
blockId | number | The block ID to place. Use 0 for air. |
metadata | number, optional | Optional block data value. |
A boolean success result from the extended helper.
local x, y, z = world.spawn()
world.fill(x - 2, y, z - 2, x + 2, y, z + 2, 1) -- 5x5 stone platform
Farkit.java. Large edits should be divided across scheduled callbacks to avoid long ticks.