Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void mineRock(){
- GameObject rockToHit = Objects.getNearest(7878);
- Tile t = rockToHit.getLocation();
- int rockInfo = rockToHit.getId();
- Timer timeOut = new Timer(5000);
- if(rockToHit != null){
- rockToHit.interact("Mine");
- while(Objects.getTopAt(t) == rockInfo && timeOut.isRunning()){
- sleep(100);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement