Debug menu interprets -0 coordinate while commands don't
I know that this is technically a duplicate of MC-36602, but this is how it should be fixed.
Make a new Redstone Ready superflat world, and run this command:
/tp @p 0 56 0
After that, run this command:
/setblock 0 55 0 minecraft:red_sandstone
A red sandstone block will be placed under you. After that, go into the debug menu (F3) and take a step west. Your X coordinate should be `-0`. Run this command to mark this position.
/setblock ~ 55 ~ minecraft:red_nether_brick
Now, run this teleportation command. This changes the coordinates to the same ones you are standing on now.
/tp @p -0 56 0
Notice anything? It will teleport you back onto the red sandstone, and not keep you on the red nether brick. This is because the debug menu interprets `-0` as a different coordinate than `0`. The debug menu's `-0` are commands' `-1`. In order to fix this, the debug menu has to get rid of `-0` (it isn't a real number). We don't need any savefile changes; you just need to offset the coordinates by -1 if the coordinates are less than 0.
2016-11-08, 06:32 PM
2016-12-19, 10:41 AM
2016-12-15, 08:36 AM
0
3
-