Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --VARIABLES
- SUGARCANELENGTH = 20
- WAITTIME = 250
- --FUNCTIONS
- function DTF()
- turtle.dig()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- function wakeUp()
- turtle.up()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- function gotoSleep()
- turtle.turnLeft()
- for i = 1, SUGARCANELENGTH, 1 do
- turtle.forward()
- end
- turtle.forward()
- turtle.down()
- turtle.turnRight()
- end
- function Lane()
- wakeUp()
- for i = 1, SUGARCANELENGTH, 1 do
- DTF()
- end
- gotoSleep()
- end
- --MAIN
- while true do
- Lane()
- --Advance to Next Lane
- turtle.forward()
- turtle.forward()
- Lane()
- --Regress
- turtle.back()
- turtle.back()
- sleep(WAITTIME)
- end
Advertisement
Add Comment
Please, Sign In to add comment