Advertisement
Guest User

Magepunk Turtle Program

a guest
Jan 18th, 2015
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. color = colors.black
  2. --Each turtle is assigned a different color
  3.  
  4. while (true) do
  5. input = rs.testBundledInput("bottom", color)
  6. block = turtle.detectUp()
  7. if (input) then
  8. if (block == false) then
  9. turtle.placeUp()
  10. end
  11. else
  12. if (block) then
  13. turtle.digUp("left")
  14. end
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement