How to make Loot Tables have a Chance to not Drop Anything?

Started by ink6969 on

Topic category: Help with modding (Java Edition)

Last seen on 21:34, 13. Feb 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make Loot Tables have a Chance to not Drop Anything?

I would like to make a loot table guaranteed to drop a specific item and then also have a chance to drop another item but how do I make it so that the second drop is a chance?

Last seen on 09:43, 1. Jun 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
> IF {random(0-1) > 0.5 :   …
Sun, 01/30/2022 - 14:01

> IF {random(0-1) > 0.5 :

      Drop

> ELSE:

      Don't drop.

Last seen on 21:34, 13. Feb 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But that's in Procedures. Is…
Wed, 02/02/2022 - 21:20

But that's in Procedures. Is there a way for it to be done in Crafting Recipes?