does anyone know how to change the odds of an item dropping in a datapack?

i am trying to create a datapack that spawns a custom item in a mineshaft chest but im not sure how to change the droprate, as i want it to be somewhere around 5%.
2 Replies
Admincraft Meta
Thanks for asking your question!
Once you have finished, please close your thread. Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close !close !solved
Requested by tedd6#0
mo_mo
mo_mo2y ago
loot table stuff take the minecraft mineshaft chest loot table json and add a new entry to it for the item you want to add

Did you find this page helpful?