Leaf Decay (I found some code that might help?)

Started by AOCAWOL on Mon, 09/02/2019 - 15:58

Topic category: Feature requests and ideas for MCreator

Last seen on 04:59, 15. Oct 2019
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Leaf Decay (I found some code that might help?)
Mon, 09/02/2019 - 15:58

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…
Mon, 09/02/2019 - 18:36

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

Last seen on 04:59, 15. Oct 2019
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Well, this is a nice fix for…
Mon, 09/02/2019 - 20:29

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..?

Last seen on 15:00, 14. Oct 2019
Joined May 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I created my own code for…
Tue, 09/03/2019 - 00:05

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.

Last seen on 15:00, 14. Oct 2019
Joined May 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
thats just the first part of…
Tue, 09/03/2019 - 00:09

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

AOCAWOL, the procedures way…
Tue, 09/03/2019 - 11:01

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).

Last seen on 00:40, 9. Oct 2019
Joined Jun 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
A lot of mods register…
Sun, 09/08/2019 - 16:14

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…
Mon, 09/09/2019 - 12:34

Did you read my previous reply?

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).