mojira.dev
MC-99668

Minecraft lists don't use a serial comma

When listing an entity's tags or the players tracked by the scoreboard, the second to last entry does not have a comma after it.

https://en.wikipedia.org/wiki/Serial_comma

Attachments

Comments 6

Not quite, that's an ellipsis.

There doesn't have to be a comma before "and".

this is how grammar works, it's 1, 2 and 3, or 1, 2, 3 and 4

Well, there is the oxford comma. This is not really a bug, regardless.

I don't want to get into an argument about grammar, but most style guides do suggest the use of the oxford comma to reduce ambiguity. In this case, say an entity has the tag "zombie", the tag "mob", and the tag "bow and arrow". If you list them, you will receive the output "zombie, mob and bow and arrow", which looks very odd. If there are individual tags called "bow" and "arrow", it gets even worse.

Additionally, having the comma simply reads better and is more consistent with widespread use.

KingSupernova

(Unassigned)

Unconfirmed

Minecraft 1.9.1 Pre-Release 3

Retrieved