fill

Fill a space shaped like a cube. The space is formed from the current position to the previous mark.

builder.fill(GRASS);

Parameters

  • block: the type of block used to fill the region

Example

Use the builder’s fill operation to create a large cube of TNT near the player.

builder.teleportTo(pos(0, 2, 0));
builder.shift(5, 5, 5);
builder.fill(TNT);

See Also

Here’s an example project that uses the builder: Build a house.