Advertisement
DZCreeper

Battle Tower Sweeper

Dec 14th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. input = read()
  2.  
  3. for g = 1, input, 1 do
  4. shell.run("towercollect")
  5. sleep(1)
  6. shell.run("nextfloor")
  7. if g == 4 then
  8. turtle.turnLeft()
  9. turtle.turnLeft()
  10. turtle.select(1)
  11. turtle.place()
  12. for z = 1,16 do
  13. turtle.select(z)
  14. turtle.drop()
  15. end
  16. turtle.turnRight()
  17. turtle.turnRight()
  18. end
  19. end
  20.  
  21. for h = 1, 10, 1 do
  22. while not turtle.up() do turtle.attackUp() end
  23. end
  24.  
  25. for i = 1, 20, 1 do
  26. turtle.back()
  27. end
  28.  
  29. for j = 1, 20, 1 do
  30. while not turtle.down() do turtle.attackDown() end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement