I'm making a DayZ-like Minecraft server for me and my friends. I'm at the end stages of developing the server, but I missing one more thing, and that is adding loot to chests around the map.

I downloaded a Chernarus map that has chests all around the map, and I want to know how I can fill all those chests with loot. I have already created the LootTable.

The things I have done:

  1. Downloaded CraftTweaker with LootTweaker, but that doesn't work since the chests placed in the world are normal chests and do not have a LootTable synced with it (used the /ct loottable target, but got nothing).

  2. Used the following command /execute @a ~ ~ ~ fill ~-1 ~-1 ~-1 ~1 ~1 ~1 minecraft:chest 0 replace minecraft:chest{LootTable:"mctools:chests/loot_table"} 0, but it doesn't work because I get an error with it.

  3. Watched a lot of Youtube tutorials and forum threads, but I haven't found the solution.

I do not have a lot of knowledge of Minecraft commands and I would really appreciate if I could get some help.

My server is running SpongeForge 1.12.2 2838.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.