Fill on serverworld and clear out tiles on new day
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user