Started by
AOCAWOL
on
Topic category: Feature requests and ideas for MCreator
Hi! I know it's been a huge request for Mcreator to have leaf Decay. I found some raw code that shows how this person made leaf Decay and I was wondering if maybe it'd be possible for you guys to add this kind of code in so basically when someone selects the Leaves material it auto generates this and maybe would give u some advanced options of changing the radius of checking for the decay and such?
https://github.com/blahblahbal/Blah-s-Minecraft-Mod/blob/Structure-fix/…
https://github.com/blahblahbal/Blah-s-Minecraft-Mod/blob/Structure-fix/…
Leaf decay is possible to be made using procedures. There is a check for a block in 6x6x6 box template and you can use this template to build from there. You check for log blocks and if they are not there, you remove the leaf block with some random chance. Trigger this procedure in the leaf block tick update.
The origin of this procedure and implementation can be found in this ticket: https://mcreator.net/tracker/issue/48704
Well, this is a nice fix for sure. However my problem is that it isn't universal. Procedures are very different from actual normal coding of a block. They just don't function on a universal level like the link above do? Like all mods such as Biomes O Plenty, Traverse they use normal like coding that copies the real Minecraft leaf decay, procedures is just almost like an off brand for it instead of using the actual way Minecraft has implemented it? You can get it to be very similar to real leaf decay but the reality is that it isn't real leaf decay..?
I created my own code for leaf decay allot of detections and place air if log isnt in radius it just takes time to get the hang of it.
thats just the first part of the long code I had to cut it into two due to computer having problems loading all the procedures
i made a improved area check procedure that you can tell the exact block you want it to check for
Link https://mcreator.net/forum/52758/improved-check-block-radius
hope it helps!
AOCAWOL, the procedures way is totally legitimate and uses Minecraft functions to work. It should work quite fast too. But I see what you are trying to tell and we will consider adding a more vanilla way to achieve this in the future updates (similar to what you linked as an example).
A lot of mods register functions of what they do as vanilla so if a mod for example edits vanilla leaf decay all modded leaves will also be affected or like with saplings if a mod will use all saplings and give you the result it works with modded saplings as well. Please keep this in mind when telling people something is already possible. We want the actual thing, not just a workaround.
Did you read my previous reply?