Randomizing Between Different Loot Tables on Chests in a Structure

Started by WhenBellsToll on

Topic category: Help with modding (Java Edition)

Last seen on 23:30, 25. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Randomizing Between Different Loot Tables on Chests in a Structure

Hi All

Relatively new to modding and working with Minecraft. I'm currently working on making a custom structure that has two chests. I made a loot table and was able to get the loot working, but not exactly how I wanted.

So in this structure I want the chests to choose between three different loot tables, one that has diamonds and gold, one that has sticks and cobwebs, and one that has food and golden apples. I'm not sure how I would accomplish this, currently all of the loot is in three separate pools in one loot table, so a chest can have any items from any of the pools. I think I need to separate out the pools into separate tables, but after that I don't know what I would do to have the chest randomly choose between those tables. Is this something you can do? Would anyone know what sort of procedure or mod element I would need to do this?

 

Thanks in advance.