1

Spawning a chest with lore items inside

Enemy Crab's Avatar Enemy Crab4/22/17 2:19 am
1 emeralds 569 2
4/25/2017 12:12 pm
a_creeper_won's Avatar a_creeper_won
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?
Posted by Enemy Crab's Avatar
Enemy Crab
Level 4 : Apprentice Dragonborn
121

Create an account or sign in to comment.

2

1
04/25/2017 12:12 pm
Level 17 : Journeyman Explorer
a_creeper_won
a_creeper_won's Avatar
So you want to spawn the chest on their head.
1
04/24/2017 2:02 pm
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
/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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome