mojira.dev
MC-130679

Tilde plus number is invalid coordinate

In 1.12.2 and earlier, the following command worked, syntactically equivalent to, /setblock ~1 ~ ~ glass):

/setblock ~+1 ~ ~ glass

This command gives an error now:

Expected double at position 10: setblock ~<--[HERE]

While it was technically not to put in the + in, having it is nice if you want to be explicit.

Comments 3

+ is no longer valid for coordinates, and there’s no point in having it.

Why is it no longer valid for coordinates? There is plenty reason to keep it in the game.
EDIT: Keeping it in the game is logically consistent with ~-<number> since ~ specially means "the current coordinate", hence why +<number> explicitly states "the current coordinate PLUS <number>". Meanwhile, ~<number> is confusing because it is not what you expect: newcomers are much more likely to think that it means "current coordinate TIMES <number>" rather than "the current coordinate PLUS <number>". 

It's like that in general. "+" is no longer a valid character for any kind of number.

Nessiesson

(Unassigned)

Confirmed

brigadier, commands

Minecraft 18w22c

Retrieved