Custom Fruit/Apples

Started by SlipkiffyWasTaken on

Topic category: Help with MCreator software

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Fruit/Apples

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

Joined Jun 2020
Points:

User statistics:

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