Advertisement
mike229876

Untitled

Mar 7th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local m = "on"
  2. local i = 0
  3. local e2 = "off"
  4. local e3 = "on"
  5. rednet.open("left")
  6. while true do
  7. if m == e2 then
  8. repeat
  9. i, m = rednet.receive()
  10. until m == e3
  11. end
  12. if m == e3 then
  13. repeat
  14. print("2")
  15. turtle.attack()
  16. turtle.select(1)
  17. turtle.drop()
  18. turtle.attack()
  19. turtle.select(2)
  20. turtle.drop()
  21. turtle.attack()
  22. turtle.select(3)
  23. turtle.drop()
  24. turtle.attack()
  25. turtle.select(4)
  26. turtle.drop()
  27. i, m = rednet.receive(1)
  28. until m == e2
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement