mojira.dev
MC-47048

if i use the exact same /give command but replace /give with /clear it doesnt work

Basicly i am trying to make it where if i type "Spawn" in a book that it teleports me to spawn. (to get the book that i am typing in use this command:

/give @p minecraft:writable_book 1 1 {display:{Name:"Magic Book"},Lore:["A Magical","Teleportation Book"],ench:[id:1,lvl:1]}

So i use this command to clear that book when i put "Spawn" in it and activate a comperator to teleport me to 0,0
but for some reason i keep getting this error: [17:58:24] Data tag parsing failed: Unbalanced quotation: {pages:["Hello"],display:{Name:"Magic (it just ends here even though theres more of the command).

Because i couldnt figure out what was wrong i set up a test command i did

/give @p minecraft:writable_book 1 1 {pages:["Hello"],display:{Name:"Magic Book"},Lore:["A Magical","Teleportation Book"],ench:[id:1,lvl:1]}

then i simply replace /give with /clear and the command no longer worked. it gave me the same error. If you could tell me what im doing wrong or if it is the game itself that would be helpful THANK YOU! (i also have pics)

Linked issues

Attachments

Comments 7

1. ench goes inside the tag tag.
2. ench is a compound array. You are missing the curly braces
3. Lore goes inside display

See http://minecraft.gamepedia.com/Player.dat#Item_structure for more information.

for some reason every time in the command where it said ,lore it skipped a line. sorry

the ench isnt the point. that is a trick to make the item look enchanted but it doesnt auctuly add any enchants

its not the command that doesnt work becasue it works when i do /give but when i replace /give with /clear it no longer works

The reason it doesn't work is because you formatted the item data incorrectly.

how come it works for /give then?

so i reformmated it, and again....it works for /give but not for /clear
same error

Aaron Lieberman

(Unassigned)

Unconfirmed

Minecraft 14w05b

Retrieved