Advertisement
aPisC

tc

Sep 15th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. while true do
  2. local event, key, isHeld = os.pullEvent("key")
  3. if key == 17 then turtle.dig()
  4. turtle.forward()
  5. end
  6. if key == 30 then turtle.turnLeft() end
  7. if key == 31 then turtle.back() end
  8. if key == 32 then turtle.turnRight() end
  9. if key == 42 then turtle.attack() end
  10. if key == 29 then turtle.place() end
  11. if key == 19 then turtle.refuel() end
  12. if key == 23 then turtle.digUp()
  13. turtle.up() end
  14. if key == 37 then turtle.digDown()
  15. turtle.down()
  16. end
  17.  
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement