mojira.dev
MC-48995

/give and /clear NBT tags

Giving a book and quill with following command:

/give @p writable_book 1 0 {display:{Name:"Name"},pages:["Text"]}

then trying to remove the same book, using /clear exactly as I did with the /give, used this command:

/clear @p writable_book 1 0 {display:{Name:"Name"},pages:["Text"]}

Expectations:

Would clear the exact same book and quill which I just gave myself

What happened:
Did not clear the book and quill, getting the error:
could not clear the inventory of nigge20, no items to remove

Attachments

Comments 4

You are using wrong systask/output
Clear & give command has not the same outputs.

Use:

/clear @p writable_book 0 1 {display:{Name:"Name"},pages:["Text"]}

Where is the difference to your command ?
Ah, Clear & give have the amount and data value swapped.

He swapped the numbers between the item and the nbttag

nkajv kjshdlkj

(Unassigned)

Confirmed

Minecraft 1.7.4

Retrieved