Started by
Chezitconnorcat
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.
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.
Thank You!