Adding loot chest to structure

Started by EightLight89620 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Adding loot chest to structure

I want to add like a randomised loot chest into my generated structure. I have like 4 chest and I want all of them have randomised loot chest with like same as desert temple loot chests. Anyone know any solutions for this?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I do! Go to the world you…
Fri, 07/22/2022 - 23:25

I do! Go to the world you built your structure in and then give yourself a command block. Then put it where you want the chest to be. Type /setblock ~ ~ ~ chest{LootTable:"chests/desert_pyramid"} replace into the command block and activate it. Do not open the chest or the loot will not be randomized when the structure is naturally generated.