pls help with random drops

Started by Chezitconnorcat on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
pls help with random drops

Hello! im making an ore called 'randominium' for a pickaxe. when you break something with the pickaxe the block drops something random. i want to know if its possible, and if so how to do it.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You want any possible random…
Fri, 05/29/2026 - 14:38

You want any possible random item from minecraft. You can make a tag, add every single thing you can. Omit stuff you don't want like maybe bedrock, command block etc. Then on block broken, spawn dropped item: random item from tag=your new tag. Done.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want it to work on…
Fri, 05/29/2026 - 14:39

If you want it to work on any block, use the global trigger on block broken, Check item in main hand = random pickaxe, if so use an entity iterator, if entity iterator = item, despawn entity iterator. Then spawn dropped item from random tag as above.