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

Started by ink6969 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Jan 2022
Points:
508

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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?

Active 3 years ago
Joined Apr 2021
Points:
805

User statistics:

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

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

      Drop

> ELSE:

      Don't drop.

Active 3 years ago
Joined Jan 2022
Points:
508

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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?