Started by
Lil Shoosh
on
Topic category: Help with Minecraft modding (Java Edition)
So, I had made a tower structure that has chests on each level. Each chest is supposed to have random items from the loot table I made. I used the command blocks to set randomized chests, and they are randomized when I place them, but they don't seem to be randomized when the structure generates in the world. Can someone help me understand what's wrong?
Which command did you use?
Did you open the chests before saving the structure? If a chest is opened for the first time, loot will be generated based on its loot table. This loot is then saved as the chest's content. In order for chests to be random, they have to be saved without opening them first.
^ ^ ^
Make sure you are on 1.14 or newer. Loot tables do not work before that version.
Use online Command Generators with /setblock like MCStacker.net. they are randomly generating. But it's generating no stacks (for me, i think it's a bug)