Change how ticking works a little
This commit is contained in:
@@ -800,9 +800,6 @@ interface GrowableBlockParams {
|
||||
|
||||
function register_growable_block(ctx: ServerContext) {
|
||||
ctx.components.register_block<GrowableBlockParams>("bworld:growable_block", {
|
||||
on_create(block) {
|
||||
block.data = {};
|
||||
},
|
||||
on_new_day(block, params, day) {
|
||||
console.log(ctx.world.get_block(block.x, block.y + 1, block.z));
|
||||
if (ctx.world.get_block(block.x, block.y + 1, block.z) !== "bworld:air") {
|
||||
|
||||
Reference in New Issue
Block a user