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

Started by ink6969 on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.

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?