Posted May 7, 201510 yr Hi, Is there a way to check if a player is near a specific block? Thanks. Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
May 7, 201510 yr If you have the coordinates of the block, calculate deltaX/Y/Z, and then do some math to figure out if the player is in range of the coordinates. If you don't have the coordinates of the block, I think there's a method in the world class which checks if there's a specific block in an AABB, which you can ofcourse make the AABB around the player. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
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.