Posted August 17, 201411 yr 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.
August 17, 201411 yr If you have a MovingObjectPosition object 'mop', mop.sideHit gives you the side in that format. http://i.imgur.com/NdrFdld.png[/img]
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.