Posted November 1, 201410 yr Hello, I need to get the current front of player coordinates.... I mean not the real player coordinates (eg. posX, posY, posZ) but the "cursor" coordinates ie where the player looking. basically I'm looking for the specific player attribute .... thx
November 1, 201410 yr Take a look at EntityLivingBase#rayTrace(double, float). Note that this is only on the client. BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
November 1, 201410 yr I think this is what you want. EntityPlayer.getLook(float distance) EDIT: nvm, use shield's answer. getLook just finds the direction you are looking I think.
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.