I was thinking about it....
Today our way of teleporting with cheats work like that:
You are in point A(X1,Y1,Z1) and you need to go in Point B(X2,Y2,Z2) so for example you are in point A(500,500,500) and you need to go in B(0,0,0) the basic thing that cheat does is changing the X,Y,Z value...