Random loot

Started by KillerPlaying29 on

Topic category: Help with modding (Java Edition)

Last seen on 15:20, 10. Nov 2020
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
Last seen on 02:28, 29. Mar 2024
Joined May 2019
Points:

User statistics:

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

don't use big caps

possible using the random number procedure

 

Last seen on 15:20, 10. Nov 2020
Joined Mar 2020
Points:

User statistics:

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

how ???

Last seen on 16:05, 13. May 2021
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.

Last seen on 03:12, 31. Jul 2021
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!)