Advertisement
RobotBubble

TurtleOffice

Dec 11th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3. function RCslave()
  4. while true do
  5. local scrap, message = rednet.receive()
  6. if message == "food" then
  7. turtle.select(1)
  8. turtle.backward()
  9. turtle.backward()
  10. end
  11. end
  12. end
  13. term.setCursorPos(9, 1)
  14. rednet.open("left")
  15. term.setTextColor(colors.white)
  16. term.clear()
  17. term.setCursorPos(12, 1)
  18. print("Office Turtle V1.2")
  19. term.setCursorPos(10, 2)
  20. print("Hold CTRL + T to quit")
  21. term.setTextColor(colors.white)
  22. RCslave()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement