Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cycledelay=5 -- cycle every x minutes
- while true do
- for y=1,2 do -- rows
- print("starting row "..y)
- for x=1,2 do -- columns
- print("working column "..x)
- for z=1,9 do
- print("checking plot "..z)
- turtle.digDown()
- turtle.forward()
- -- turtle.digDown()
- end
- if x~=2 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.digDown()
- end
- end -- end of column
- if y~=2 then
- turtle.turnLeft()
- for z=1,4 do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- end -- repeat for row times
- print("repositioning to unload and restart")
- turtle.turnRight()
- for z=1,6 do
- turtle.forward()
- end
- print("Unloading cargo...hope the barrel isn't full.")
- for d=16,1,-1 do
- turtle.select(d)
- turtle.drop()
- end
- turtle.drop()
- turtle.turnRight()
- for w=1,cycledelay,.5 do
- print("Zzzz...."..w.." of "..cycledelay)
- sleep(30)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement