Started by
KillerPlaying29
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I would like to create a command that would always give me a random loot from the loot table is something like that possible?
Edited by KillerPlaying29 on Fri, 06/12/2020 - 18:28
don't use big caps
possible using the random number procedure
how ???
In the procedure (Template library, in the procedure maker) library, there is one for "generate a number between 0 and 10." This might not be what you want exactly, but you can increase the values to higher numbers.
It's very simple, just use this command in a procedure/function
loot spawn ~ ~ ~ loot <Mod namespace>:<Type of loot table>/<name of loot table>
you don't need to use a random number generator or anything, just that (and you need a loot table to summon of course!)