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
+4
View File
@@ -911,6 +911,10 @@ export class ModRuntime {
game().set_block(x, y, z, id, undefined, state);
return true;
},
fill: (from, to, id) => {
if (id !== AIR_ID && !EverythingRegistry.get("blocks", id)) throw new Error(`unknown block ${id}`);
return game().fill(from, to, id);
},
break_block: (x, y, z, options = {}) => {
if (game().world.get_block_id(x, y, z) === AIR_ID) return undefined;
const how = { harvest: options.harvest === true, collect: options.collect === true };