Fill on serverworld and clear out tiles on new day

This commit is contained in:
2026-11-22 11:22:07 -03:00
parent dfb110e0f8
commit c2e885f23a
8 changed files with 64 additions and 18 deletions
+14
View File
@@ -117,6 +117,20 @@ replaced. Players who load the chunk later don't see cracks set before, so keep
cobblestone. `collect` returns the drops without dropping them, for a machine that puts them somewhere, like onto a
belt.
### Filling From Scripts
`ctx.world.fill(from, to, id)` sets every block in the box between two corners, both included, like `set_block` on each,
and says how many it changed. Like [placing a schematic](../misc/schematics.md), they all change before any of them
hears of it, so a door's halves or a torch's wall are gone together. It's for clearing or walling off a whole area, like
an interior before the next one goes in:
```ts
ctx.world.fill({ x: 0, y: 60, z: 0 }, { x: 31, y: 79, z: 31 }, "cubi:air");
```
Parts above or below the world are left out, and ungenerated chunks it reaches are generated first. `/fill` does the
same, up to 32768 blocks at a time.
## Placement
Players place a block by right clicking a face of another block with its item. It goes next to the face they clicked, or