How to make a leaf with leaf mechanics?

Started by Raybie_ on

Topic category: Help with modding (Java Edition)

Last seen on 17:42, 16. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a leaf with leaf mechanics?

I'm struggling with making my custom leaf block. I made the block itself but it doesn't drop when broken with a shear or when broken with a hoe/hand it drops fruit sometimes.
Can someone help me?

Last seen on 23:47, 20. Jan 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure: If block…
Mon, 05/17/2021 - 10:26

Make a procedure:
If block broken while having shears in hand, spawn leaves gem.
If block broken with no shears in hand, spawn sapling/fruit with some % of a chance.

Kind of cheaty, but it does the job done

Last seen on 23:47, 20. Jan 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could also try loot…
Mon, 05/17/2021 - 10:27

You could also try loot tables, but I don't know how that works. That's the intended solution lol