Introduction
When a command modifies or for some commands also not modifies the NBT data of an entity or a block, the chat shows the current NBT data.
The bug
I noticed a bug after recompiling Minecraft 1.8 using MCP which is still present in the latest version. When the toString() method of a NBTTagString is called, it only replaces double quotes (") with escaped double quotes (\").
This can cause problems as the output is supposed to represent the correct NBT data of an object. As it is missing the backslash escaping it would cause two backslashes to become one.
How to reproduce
- Use the following command:
/summon armor_stand ~ ~ ~ {CustomName:"\"\\a"}
- Use the following command:
/entitydata @e[type=armor_stand,c=1] {CustomNameVisible:1b}
The output probably shows something like this:
...CustomName:"\"\a"...
But as you see that was not what you entered.