SHARE
TWEET

Untitled

a guest Aug 12th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void mineRock(){
  2. GameObject rockToHit = Objects.getNearest(7878);
  3. Tile t = rockToHit.getLocation();
  4. int rockInfo = rockToHit.getId();
  5. Timer timeOut = new Timer(5000);
  6. if(rockToHit != null){
  7.     rockToHit.interact("Mine");
  8.         while(Objects.getTopAt(t) == rockInfo && timeOut.isRunning()){
  9.             sleep(100);
  10.         }
  11.     }
  12. }
RAW Paste Data
Top