1
Spawning a chest with lore items inside
I'm making a command block that spawns a chest with a specific item with tags inside, but I'm having a bit of trouble making it work. The command I have currently is:
/setblock ~ ~1 ~ minecraft:chest 0 destroy {Items:{id:tripwire_hook{tag:{display:{Name:["Boss Key"],Lore:["d1bosskey"],Count:1,Slot:13}}}}}
Using this command, it will spawn a chest, but the chest is empty. I'm almost positive I'm doing the brackets wrong. I just can't for the life of me figure out how it is wrong.
So far I've managed to spawn a chest with a tripwire hook inside, but can't make a tripwire hook with lore and a name appear.
Any ideas?
/setblock ~ ~1 ~ minecraft:chest 0 destroy {Items:{id:tripwire_hook{tag:{display:{Name:["Boss Key"],Lore:["d1bosskey"],Count:1,Slot:13}}}}}
Using this command, it will spawn a chest, but the chest is empty. I'm almost positive I'm doing the brackets wrong. I just can't for the life of me figure out how it is wrong.
So far I've managed to spawn a chest with a tripwire hook inside, but can't make a tripwire hook with lore and a name appear.
Any ideas?
Create an account or sign in to comment.
2
1
So you want to spawn the chest on their head.
1
/setblock ~ ~1 ~ minecraft:chest 0 destroy {Items:[{id:tripwire_hook,Count:1,Slot:13,tag:{display:{Name:["Boss Key"],Lore:["d1bosskey"]}}}]}
This is the right format. you separated the "tag" component wrong.