Advertisement
Jakey4543

Startup Subroutine

Dec 24th, 2020 (edited)
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. --// Startup sub-routine
  2.  
  3. turtle.suckDown(1)
  4.  
  5. --// Refuel
  6. turtle.select(1)
  7. turtle.placeUp()
  8. turtle.suckUp(1)
  9. turtle.refuel()
  10. turtle.dropUp()
  11. turtle.digUp()
  12.  
  13. --// Get ore chest
  14. turtle.forward()
  15. turtle.suckDown(1)
  16.  
  17. --// Add modem
  18. if not turtle then
  19.     turtle.turnLeft()
  20.     turtle.forward()
  21.     turtle.turnRight()
  22.     turtle.suckDown(1)
  23.     turtle.turnRight()
  24.     turtle.forward()
  25.     turtle.turnLeft()
  26.     turtle.select(3)
  27.     turtle.equipLeft()
  28. end
  29.  
  30. shell.run("client")
  31.  
  32. print("Startup ended")
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement