I was messing around with the /tp command, and tried to go to 40,000,000 280 40,000,000, and it gave me an error saying it must be "at most" 30,000,000. So I typed
/tp @p 30000000 280 30000000
and got the same error:
The number you have entered (30000000.50) is too big, it must be at most 30000000
However, saying "at most 30000000" means that 30000000 is okay, but nothing over that. I entered 30000000 exactly, so it is "at most" 30000000, but I still got the error. In addition, it would be better if it didn't use scientific notation for big numbers here, as the numbers are never presented that way anywhere else in the game.
Comments 6
Try teleporting to 30000000.0
As @unknown said, the teleport command modifies the coordinates you give it to place you at the center of a block, rather than the corner. However, if you give it a floating-point value, it will teleport you to the exact coordinates you specify, rather than modifying them.
Something should change here though. It should probably say less than 30000000, and like you said, shouldn't be presented in scientific notation.
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been deliviered.
As of 20w06a (which fixed MC-122715), the error message is simply, "Invalid position for teleport". Hence this issue is now fixed.
When you teleport to a block, it wants to teleport you to the middle of that block, thus the 5 at the end of the number in the message and the reason it's considered "too big", since that's half of a block past the intersection. It's a bit of an error, that should be fixed. Maybe rewording the message to be: "The number you have entered (<Insert number here>) is too big, it must be less than 30000000." would fix things.