Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement