Posted November 14, 201410 yr I swear I've seen this question asked about 100 times in this forum, but for the life of me I can't find it anywhere and I can't figure this out myself... I need to know how to make a block perform an operation when the player is within 5 blocks of it. In this case, it's supposed to generate a structure. Could anyone give me an idea of how to do this?
November 14, 201410 yr Just square the difference between the x, y and z coordinates than square root it. This is plain geometry. 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.
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.