How to make a leaf with leaf mechanics?

Started by Raybie_ on Sun, 05/16/2021 - 06:59

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a leaf with leaf mechanics?
Sun, 05/16/2021 - 06:59

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 10:04, 18. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 10:04, 18. Jul 2021
Joined May 2021
Points:

User statistics:

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