Runecrafter 0 Share Posted February 11, 2021 (edited) Hey there, I am trying to detect if I am in the essence mine, so I can start mining essence. so I tried setting an area but the coordinates change everytime I switch worlds. How should I check if I am in the area, or how to handle something like this, I have included some screenshots where u can see that player position is different in the same position. Thanks in advance. Edited February 11, 2021 by Runecrafter Link to comment Share on other sites More sharing options...
Hashtag 8356 Share Posted February 11, 2021 Hey, one way you could do is by checking if a certain gameobject is found: @Override public int onLoop() { GameObject runeEssence = GameObjects.closest("Rune Essence"); if (runeEssence != null) { // I am at the essence mining area if (!Inventory.isFull()) { // mine } else { // leave } } else { // I am not at the area } return 0; } Link to comment Share on other sites More sharing options...
Runecrafter 0 Author Share Posted February 15, 2021 (edited) Thanks for the response, yea that will work. I just wanted to know if there is a way to make sure player is in the essence mine, but it seems like there is no way with setting area's atleast. As its determined to change. Edited February 15, 2021 by Runecrafter Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now