Procedure for Decaying Custom Leaves to Drop Items

Started by WenXin2 on Tue, 04/21/2020 - 02:10

Topic category: Help with modding (Java Edition)

Last seen on 14:57, 24. Nov 2020
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Procedure for Decaying Custom Leaves to Drop Items
Tue, 04/21/2020 - 02:10

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!

Last seen on 14:57, 24. Nov 2020
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

I don't think there is a way…
Tue, 04/21/2020 - 15:52

I don't think there is a way to detect this. Try changing drops using loot tables instead.

Last seen on 14:57, 24. Nov 2020
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 23:22, 10. Jul 2021
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 23:22, 10. Jul 2021
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
also loot tables only work…
Wed, 04/22/2020 - 05:40

also loot tables only work on 1.14

Last seen on 14:57, 24. Nov 2020
Joined Jun 2016
Points:

User statistics:

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

I hadn't thought of that, thanks!

Last seen on 23:22, 10. Jul 2021
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
no problem!
Wed, 04/22/2020 - 05:50

no problem!