Leaf Decay Procedure

Started by AOCAWOL on

Topic category: Help with modding (Java Edition)

Last seen on 18:03, 5. Dec 2021
Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Leaf Decay Procedure

Hey I was wondering if anyone could give me a Leaf Decay Procedure template or show me how to make one. I just honestly don't know where to start cuz' I'd read "Make it check for leaf blocks around it" but I don't even know how to do that. So any help would be appreciated <3

Last seen on 17:49, 25. Mar 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't think you can…
Fri, 03/15/2019 - 14:34

I don't think you can properly replicate leaf decay with custom blocks. Naturally generated leaves decay, player-placed ones don't; decaying leaves near logs make other leaves decay, and more.

 

Anyways, to check for blocks, you can use these procedure blocks:

If [(get block at x, y, z) = (choose a block)]

then (do something)

The (choose a block) thing can be found in the minecraft components tab

You can also find something useful in the procedure templates :)

Last seen on 17:23, 26. May 2021
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm actually wondering about…
Thu, 04/18/2019 - 13:56

I'm actually wondering about this too; I've tried making a procedure but haven't had luck. None of the templates seemed to have what I was looking for either. Leaf decay would be amazing with The Crystallia, since a lot of my trees have A LOT (and like a lot) of leaves.

I'm not too good with procedures to be honest, but basically I think it'd pretty much be that if a 50% chance is met and a custom leaf block cannot find it's corresponding custom wood block in the given xyz parameter, then it would despawn. And if it didn't meet the 50% chance/found the given wood it needed then it'd stay as it is.

The problem is I can't find a component that searches for a block within a given area (say a 5x5x5 radius), only one that locates a block at a specific spot. That wouldn't work well with leaf decay as the leaves would all look towards a single spot as defined by their procedure as to whether or not they'd stay spawned in, and even if there was wood right next to them may despawn if their given location had the procedure looking at a spot with no wood block. Hope that made sense haha.

So at the given time I don't think leaf decay is possible with MCreator as it is, there needs to be a few more procedures added in that make it possible imo, either that or I'm a big dumb dumb.

If it were me I'd add a section in the block creation element editor that you could say, check for leaf decay, and then specify what block the "leaf" would have to be near in order to not decay, but that's a suggestion I should put in the feature requests uwu