Structure chests

Started by THe_mag-pie on Mon, 08/19/2019 - 04:59

Topic category: User side tutorials

Last seen on 03:48, 26. Aug 2019
Joined Jun 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Structure chests
Mon, 08/19/2019 - 04:59

I plan to make some structures in one of my mods, most of which have chests in them, how do I put random items in the chests like in dungeons.

Last seen on 07:52, 5. Sep 2019
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
there is a command that…
Mon, 08/19/2019 - 07:33

there is a command that spawns a chest with random loot

/setblock ~ ~ ~ minecraft:chest 2 replace {LootTable:"chests/simple_dungeon"}

it generates a chest with random loot that you would fin in a simple dungeon, here is also the wiki page where you can find more lot tables

https://minecraft.gamepedia.com/Loot_table#List_of_loot_tables

one last thing , if you want the chest to have random loot in a structure don't open it , if you do the loot won't randomize.

hope i was useful to you

Last seen on 03:48, 26. Aug 2019
Joined Jun 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
THX
Tue, 08/20/2019 - 20:09

THX