Procedure for Decaying Custom Leaves to Drop Items

Started by WenXin2 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure for Decaying Custom Leaves to Drop Items

Hello, I am trying to figure out how I can detect when a custom leaf block decays. I would like to make it so that there is a certain chance that it drops a custom sapling, but so far nothing has worked for me.

I've tried to check for when the block is destroyed, but that doesn't seem to detect decaying leaves.

Thanks!

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's what I'm using, but…
Tue, 04/21/2020 - 15:17

That's what I'm using, but it drops the sapling 100% of the time, so I have to use a procedure to change it's drop rate, but it's not detecting when leaves decay.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is the procedure I'm…
Tue, 04/21/2020 - 15:53

This is the procedure I'm using, but it is not dropping when the leaves decay, only when a block is broken.

Leaves Drop Procedure

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you don't need to do this…
Wed, 04/22/2020 - 05:39

you don't need to do this.

Use loot tables instead.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I hadn't thought of that,…
Wed, 04/22/2020 - 05:49

I hadn't thought of that, thanks!