mojira.dev
MC-122173

Creating scoreboard objectives for stats is impossible due to the ":"

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

Comments 11

There's no mention about this in the changelog. How did it change ? How are we supposed to create objectives now ?

https://minecraft.gamepedia.com/17w47a

'Statistics are being updated.'

I didn't see that too.

@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.

Reopend, now that the new stat names are mentioned

1 more comments

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.

Ah, ok. Looking forward to a fix so I can continue making my 1.13 maps.

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.

Thanks for fixing this!

TheMrZZ

(Unassigned)

Confirmed

Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a

Minecraft 17w49a

Retrieved