Custom Fruit/Apples

Started by SlipkiffyWasTaken on Fri, 08/21/2020 - 10:02

Topic category: Help with MCreator software

Last seen on 16:50, 14. Sep 2020
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom Fruit/Apples
Fri, 08/21/2020 - 10:02

I've started making a mod with new dimensions, and I've made a custom tree, with custom leaves, but I can't figure out how to make the leaves have like a 1% chance of dropping my custom poisonous apple.

Use loot tables or…
Fri, 08/21/2020 - 10:13

Use loot tables or procedures for this.

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

Last seen on 20:46, 15. Jul 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If you don't want to use…
Sun, 08/23/2020 - 05:12

If you don't want to use loot tables, you can use a custom procedure using the "random number between 0 and 1" block. Just make a procedure using the "on block broken" event in your leaves block triggers page. Then inside that procedure, do something along the lines of:

If (random number between 0 and 1) < .01
Do: spawn gem (poisonous apple) at (x y z).

That would give a 1% chance for the item (poisonous apple, a gem is the name of an item) to drop where the leaves are when the leaves are broken.