Random vanilla chest loot

Started by scorpion981 on

Topic category: Help with Minecraft modding (Java Edition)

Active 9 months ago
Joined Jul 2017
Points:
1044

User statistics:

  • Modifications: 1
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 366
Random vanilla chest loot

How do i make a chest with random loots like the chests in vanilla villages, dungeons or nether fortresss? It can be with a structure, a block that spawn chest or another thing if you have others ideas. There is another topic for that but Mcreator change and i dont find what he was talking about.

Active 9 months ago
Joined Jul 2017
Points:
1044

User statistics:

  • Modifications: 1
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 366
Can someone answer pls?
Mon, 09/30/2019 - 21:51

Can someone answer pls?

Active 4 years ago
Joined Aug 2019
Points:
1023

User statistics:

  • Modifications: 0
  • Forum topics: 31
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 450
One way of doing it through…
Tue, 10/01/2019 - 21:18

One way of doing it through procedures it is by adding items inside of a block if it has tile entity. Use a random number to put it inside of a slot (use round and multiply to get the max number of slots -1)

There are a couple of tricks you can use to get something inside of a random slot and when it is placed inside of a slot, create a procedure that also randomises the item and the amount.

Active 4 years ago
Joined Aug 2019
Points:
1023

User statistics:

  • Modifications: 0
  • Forum topics: 31
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 450
I think there are also posts…
Tue, 10/01/2019 - 21:19

I think there are also posts about this already showing how to do this exactly using custom code.

Active 9 months ago
Joined Jul 2017
Points:
1044

User statistics:

  • Modifications: 1
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 366
This is not really helping,…
Thu, 10/10/2019 - 01:00

This is not really helping, sorry