How do I Make a Custom Block Have a 50/50 Chance of Dropping 1 of 2 Certain Blocks?

Started by AlexMuseMatrix on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I Make a Custom Block Have a 50/50 Chance of Dropping 1 of 2 Certain Blocks?

I am making a block called "prinite" and I want to make it so it drops the purple prinite or the yellow prinite.
I want it to be a 50/50 chance. I've already messed with loot tables, but whenever I mine the block it either drops nothing, the yellow one, or the purple one, or both. How do I make it so it only drops one of the following? I also want to make it so you can pick up the base block with the silk touch enchantment.

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i will help you
Sun, 12/08/2024 - 17:46

i will help you

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Your welcome!
Tue, 12/10/2024 - 23:34

Your welcome!