Random loot

Started by KillerPlaying29 on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Mar 2020
Points:
668

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 12
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
Active 1 week ago
Joined May 2019
Points:
1191

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 2
  • MCreator plugins: 1
  • Comments: 781
don't use big caps possible…
Sun, 05/31/2020 - 15:30

don't use big caps

possible using the random number procedure

 

Active 4 years ago
Joined Mar 2020
Points:
668

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 12
how ???
Sun, 05/31/2020 - 19:45

how ???

Active 4 years ago
Joined Feb 2020
Points:
919

User statistics:

  • Modifications: 1
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 385
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.

Active 4 years ago
Joined May 2020
Points:
670

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 65
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!)