Started by
MariuszKopytko
on
Topic category: Help with MCreator software
I used command: /give Dev chest{BlockEntityTag:{LootTable:"(modname):chests/(loottable name)"}} and command block with this command: /setblock ~ ~1 ~ minecraft :chest{LootTable:"(modname):chests/(loot table name)"} and the chest is always empty. When I use the first one then chest shows up in my hand and when I'm trying to place it down, it shows up on ground for 0.1 second and disappears (but not from my hand). Then when I'm placing it again it's empty.
This is the correct code to run, and it works on my end. Double check that the loot table appears as an available option in the command interface, (if it doesn't, there's an error in the loot table itself that's preventing it from loading). If it does appear in the interface, then there's something wrong with the command or the loot table name.
This is the command I use for this. (superiorstructures is my ModID, and chests/temple_kitchen is the loot table.) It looks like you might be using an older version of the command, try something like this in a command block instead.
(Also, helpful sidenote, if you use control+block select, you can add a chest with a loot table to your hotbar, which is very, very useful for structure design. You can also use this to save other NBT data and blockstates.)