Procedures not working when generated

Published by AOCAWOL on Tue, 12/31/2019 - 03:08
Upvotes: 3
Issue description

So I made leaf decay procedures for all my leaf blocks and they worked fine when I was placing them. But when I put them in a structure as a tree and they generated. The decay procedure tied to them doesn't work at all for some reason?

Issue comments

Submitted by AOCAWOL on Tue, 12/31/2019 - 03:09

If there is anyway this bug fix could come in a hotfix instead of waiting for the 2019.5 because this is a heavy issue for like my entire mod as it's dependent on procedures.

Unfortunately, tick update is not started on its own as there are no events triggered by default when the block is spawned in the world to prevent extreme lag that would cause.

The way around this I would take is the following: Use neighbor block changed the procedure and on this procedure, the ticking should be started. There is no procedure to schedule a tick update yet, we will consider adding it. For 1.14.4, you can use the following code in the custom code procedure block:

world.getPendingBlockTicks().scheduleTick(new BlockPos(x, y, z), world.getBlockState(new BlockPos(x, y, z)).getBlock(), 0);

 

If there is anyway this bug fix could come in a hotfix instead of waiting for the 2019.5 because this is a heavy issue for like my entire mod as it's dependent on procedures.

We do not release hotfixes this deep in the release, the purpose of snapshots is to isolate such bugs by early testers as late patches would confuse users as many would not have them. I will release this in 2020.1, but for now, use the workaround I provided.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.