XYZ
#1
I feel like I'm going insane...Is the axis in MCserver backwards? This is really messing up some of the testing I've been doing with a plugin I'm working on. Because all the data values are the opposite of what they should be due to either the sun being in the wrong place or a reverse axis.

Z positive should move eastward not westward. X positive should move Northward not Southward... I was confused for a long time until I realized this.

I was using a diagram to figure out block placement via relative position like this:

------------[1,0,0 ]-----------
---[0,0,-1][0,0,0 ][0,0,1]---
------------[-1,0,0]----------

But it turns out that is wrong so I had to reverse it:

-----------[-1,0,0]------------
---[0,0,1][0,0,0 ][0,0,-1]---
-----------[1,0,0 ]------------

Strange indeed...Because using the new diagram will align (0,0,1) with the direction of the Sun. CONFUSED!
Reply
Thanks given by:
#2
Uhm, what?

MCServer has the exact same axis system as Minecraft. I can't say which directions X and Z are, but the Y axis points upwards meaning 127 is the top block, and 0 is the bedrock at the bottom of the map.

If you're using OnBlockPlace or OnBlockDig for this, you always get the coordinates of the block you aimed at.
Reply
Thanks given by:
#3
(03-04-2011, 10:23 PM)FakeTruth Wrote: Uhm, what?

MCServer has the exact same axis system as Minecraft. I can't say which directions X and Z are, but the Y axis points upwards meaning 127 is the top block, and 0 is the bedrock at the bottom of the map.

If you're using OnBlockPlace or OnBlockDig for this, you always get the coordinates of the block you aimed at.

Use F3. Go to singleplayer and walk towards the sun. Z will increase. Go on MCServer walk towards the sun, Z will decrease. The Y axis is fine.
Reply
Thanks given by:
#4
Nope. If you walk towards the sun while it's setting, Z will increase (both single and MCServer) if you walk towards it while it's rising, Z will decrease (both single and MCServer)

Make sure you're not getting confused by negative numbers! -100 to -99 is NOT a decrease but an increase.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)