So, I've got a minecart chest named Command_Cart
and I'm trying to make it so I can reset it with some items.
I put some written books and paper in, and used the command /entitydata @e[name=Command_Cart] {}
to get its nbt data, which I put in a command. The only thing I changed was the author of the books, which I wanted to be "MeTheCommandCart". However, every time I run the command, it only resets the chest to empty.
The full command is this:
entitydata @e[type=chest_minecart,name=Command_Cart] {Items:[0:{Slot:0b,id”minecraft:written_book”,Count:1b,tag:{pages:[0:”{\”text\”:\”/gamemode @p 0\”}”],author:”MeTheCommandCart”,title:”Gamemode 0”,resolved:1b},Damage:0s},1:{Slot:1b,id”minecraft:written_book”,Count:1b,tag:{pages:[0:”{\”text\”:\”/gamemode @p 1\”}”],author:”MeTheCommandCart”,title:”Gamemode 1”,resolved:1b},Damage:0s},2:{Slot:2b,id”minecraft:written_book”,Count:1b,tag:{pages:[0:”{\”text\”:\”/gamemode @p 2\”}”],author:”MeTheCommandCart”,title:”Gamemode 2”,resolved:1b},Damage:0s},3:{Slot:3b,id”minecraft:written_book”,Count:1b,tag:{pages:[0:”{\”text\”:\”/gamemode @p 3\”}”],author:”MeTheCommandCart”,title:”Gamemode 3”,resolved:1b},Damage:0s},4:{Slot:4b,id”minecraft:paper”,Count:1b,tag:{RepairCost:0,display:{Name:”Command goes under here”}},Damage:0s},5:{Slot:12b,id”minecraft:paper”,Count:1b,tag:{RepairCost:0,display:{Name:”Command goes right of here”}},Damage:0s},6:{Slot:14b,id”minecraft:paper”,Count:1b,tag:{RepairCost:0,display:{Name:”Command goes left of here”}},Damage:0s},7:{Slot:22b,id”minecraft:paper”,Count:1b,tag:{RepairCost:0,display:{Name:”Command goes above here”}},Damage:0s}]}
This is exactly the Item nbt data it had, so I don't understand why it isn't working.
id:<item here>
instead ofid”<item here>”
?id:"minecraft:written_book"