Started by
Geilosaurus
on
Topic category: Help with Minecraft modding (Java Edition)
I wanted to make a custom chest loot table for a structure, so I created one and put that chest with the /setblock ~ ~ ~ minecraft:chest{LootTable:"chests/sky_altar"} command in the structure. I tested it out but the chest is just empty. I tried placing the chest somewhere else and even remade the loot table but it all doesn't work. The chest is always empty. How can I fix that?
Make your structure
Place inside your chest and add content (or even better randomize it by using a block spawner)
Save your structure
That's quite simple
I did just that but the chest was just empty
You must save your structure after you place block inside
Then you must re import your structure into Mcreator
I did that but it doesn't work
if it does not work is cause you make it in the wrong way
I have plenty situations of this kind in my mod
Just download my mod XII - The Hanged Man search for cyclop cave and you will see inside my custom chest which always contains different loot
A few things
1. It is easier if you give yourself the chest with the loot table as the NBT Data still randomizes the loot when you place it down.
2. Make sure your loot table is put together correctly, ensure that it rolls several times and make sure your loot table ID is the same as the one you are using in the command
3. It is likely you are having the same issue I am having in which non of my loot tables seem to want to work.