Posted September 6, 201312 yr Hmm.. I've known how to get the entity which player is looking at by the enderman's implementation. And wondering how to get the block which player is looking at. Is there some function do this in minecraft or anyone could give some ideas?
September 12, 201312 yr I don't want to open Eclipse now to answer your question, but yes there is. Search for "trace" or "raytrace".
October 3, 201312 yr In 1.6.4, try EntityLivingBase.getLookVec() Player is an (extends) EntityLivingBase.
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.