Minecraft's coordinate's system appears to be built from the perspective of the camera -- left/right, up/down, front/back. I can see how this makes sense when writing code that deals with rendering things based on the camera's perspective. It doesn't make sense when trying to teleport players or talk about absolute position in the world. Most people would think of it from the perspective of a map -- latitude, longitude, and altitude. Spawn would be the origin so north should be +y, south should be -y, east should be +x, west should be -x, up should be +z, and down should be -z. Being able to specify coordinates in this manner -- north/south, east/west, up/down -- would cause less confusion and make reasoning about where in the world the coordinates are actually referencing.
It should also be relatively simple to implement as it can just be a wrapper around the original TP command, but it maps from one coordinate system to MC's If I'm not mistaken, it should just be swapping the order of the y and z parameters, taking the negative of the x and y coordinates, and then calling the original TP command.
Ideally, there could be a user-setting that allows them to select which coordinate system they prefer and all functions that take coordinates would map them automatically (along with the coordinates being displayed in that system), but I do recognize that is a significantly larger ask.
Please sign in to leave a comment.
0 Comments