Guest Apogee Posted April 30, 2014 Share Posted April 30, 2014 (edited) Ran into an issue. I've never had to get the geographical height of a player before so i am a little confused. Any help would be appreciated ply.getPosition().getZ().equals() doesn't seem to work. Got it working. (ply.getPosition().getZ() > 0)) Edited April 30, 2014 by Bitter Link to comment Share on other sites More sharing options...
Joseph Posted April 30, 2014 Share Posted April 30, 2014 (edited) getZ() return the players plane aka the position(x, y, z) . edit: what about try using client.getMyPlayer().getHeight(); Edited April 30, 2014 by josedpay Link to comment Share on other sites More sharing options...
Brainfree Posted April 30, 2014 Share Posted April 30, 2014 (edited) Correct, X,Y,Z are global Cartesian Coordinates of the entity calculated by the encapsulating wrapper. Which is calculated by: World_X = gameBaseX + ( X / 128 ) [ X >> 7 ] World_Y = gameBaseY + ( Y / 128 ) [ Y >> 7 ] where the X/Y are provided by the internal instance of the entity. Edited April 30, 2014 by Brainfree Link to comment Share on other sites More sharing options...
Dog_ Posted April 30, 2014 Share Posted April 30, 2014 getZ is the floor level of your player, and not the height. You need to use myPlayer().getHeight() Link to comment Share on other sites More sharing options...
Guest Apogee Posted April 30, 2014 Share Posted April 30, 2014 Thats what i meant. Sorry for the confusion. I want to see what floor i'm on. Link to comment Share on other sites More sharing options...
Dog_ Posted April 30, 2014 Share Posted April 30, 2014 Thats what i meant. Sorry for the confusion. I want to see what floor i'm on.client.getPlane() will return the current floor level Link to comment Share on other sites More sharing options...