Slick Posted December 30, 2022 Share Posted December 30, 2022 The interact() API is not very reliable when player is under attack. It is not moving the mouse and returning false from the method. I have tested executing InteractionEvent and getting similar results I have also tried ClickMouseEvent with EntityDestination as well as simply getMouse().move and click but they still do fail to click an object quite often What is the preferred way to interact with other entities when player is in combat? Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted December 31, 2022 Share Posted December 31, 2022 6 hours ago, Slick said: The interact() API is not very reliable when player is under attack. It is not moving the mouse and returning false from the method. I have tested executing InteractionEvent and getting similar results I have also tried ClickMouseEvent with EntityDestination as well as simply getMouse().move and click but they still do fail to click an object quite often What is the preferred way to interact with other entities when player is in combat? It's probably something with your code, because interaction code does not care about being in combat or not... Share some code and let's see what's wrong Quote Link to comment Share on other sites More sharing options...