wnx Posted August 17, 2014 Posted August 17, 2014 Hi! I have a slight problem. I need to get side of block that player is looking at, in format 0-5. PS: I don't mean player direction, that I can get like this: int playerDirection = MathHelper.floor_double((double)((minecraftInstace.getMinecraft().thePlayer.rotationYaw * 4F) / 360F) + 0.5D) & 3; Thanks for any help. Quote
coolAlias Posted August 17, 2014 Posted August 17, 2014 If you have a MovingObjectPosition object 'mop', mop.sideHit gives you the side in that format. Quote http://i.imgur.com/NdrFdld.png[/img]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.