When you want to create scoreboard objectives using the statistics as criteria, the parser stops parsing at the : causing the command to error as there's no criteria with the name
minecraft.killed
(for example), even though you inputted
minecraft.killed:minecraft.ender_dragon
.
Linked issues
is duplicated by 9
Comments 11
There's no mention about this in the changelog. How did it change ? How are we supposed to create objectives now ?
@FVbico, can you provide a working command, creating an objective related to a statistic ? For example "minecraft.used:minecraft.sand" (wich doesn't work) !
If you can't, then there is now way to create statistics-related objectives now. So i wouldn't count this issue as "Invalid". This seems to be a very valid bug in my opinion.
Suggested Fix: Allow quotations when accessing JSON objects?
i.e.
/scoreboard objectives add <objectiveName> "minecraft.custom:minecraft.jump" <displayName>
in previous versions using HandItems:[{id:"minecraft:stone",Count:1b},{}] worked even with the colon there.
It’s not q json object, it’s still just a string, but just doesn’t allow the : (or negates everything after it or similar) the fix will be to just make it read it correctly; quotes are not needed.
As for the nbt, the unquoted strings just got more strickt in 1.12.
In 17w49a you're able to type: 'minecraft.killed:minecraft.ender_dragon' and the objective gets created successfully. So I suggest to mark this issue as fixed.
stats changed.