Random loot

Started by KillerPlaying29 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random loot
Fri, 06/12/2020 - 18:28 (edited)

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
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the procedure (Template…
Fri, 06/12/2020 - 17:44

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.

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's very simple, just use…
Sun, 06/14/2020 - 09:21

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!)