So I'm trying to make a command that just simply checks if there's any object at a specific location.


1 2 3 4 5 6 7 8 | for (Object obj : getObjectsAt( 300 , 200 , Actor. class )) { if (obj instanceof Player) { // do something -- for example ... ((Player) obj).setHealth( 100 ); } } |