Runecrafter 0 Share Posted February 11, 2021 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. Link to comment Share on other sites More sharing options...
Hashtag 8670 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 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.