If you write:
/summon area_effect_cloud ~ ~ ~ {Particle:flame,Radius:3f,Duration:10} force
the fail message is only:
{Particle:flame,Radius:3f,Duration:10} forc
the word 'force' is only writen 'forc', missing the last character.
Code analysis by @unknown in this comment.
Comments 3
Please link to this comment in the description
The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.
The reason for this is that the method net.minecraft.nbt.JsonToNBT.nameValueToNBT(String, String)
only tests if the NBT data starts with a curly bracket and then assumes the last character is a curly bracket as well, removing the first and the last character. This is also the reason why you get the rather strange error message "Unbalanced curly brackets {}" even though it contained a pair of curly brackets, because it assumes it already removed the curly bracket at the end.
Confirmed for
16w02a
But this is the wrong project