Plazter

dør

Jun 4th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function open()
  2. turtle.digUp()
  3. turtle.up()
  4. turtle.digUp()
  5. turtle.up()
  6. turtle.digUp()
  7. turtle.down()
  8. turtle.down()
  9. turtle.placeUp()
  10. end
  11.  
  12. function close()
  13. turtle.digUp()
  14. turtle.up()
  15. turtle.up()
  16. turtle.placeUp()
  17. turtle.down()
  18. turtle.placeUp()
  19. turtle.down()
  20. turtle.placeUp()
  21. end
  22.  
  23. while true do
  24. term.clear()
  25. term.setCursorPos(1,1)
  26. if rs.getInput("left") then
  27. open()
  28. sleep(5)
  29. close()
  30. end
  31.  
  32. if not rs.getInput("left")
  33. print("waiting master!")
  34. sleep(1)
  35. end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment