Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pastebinlocal function chop4(x)
- for i = 1, x do
- turtle.forward()
- turtle.forward()
- turtle.digDown()
- end
- end
- local function chop5(x)
- for i = 1, x do
- turtle.digDown()
- turtle.forward()
- turtle.forward()
- end
- end
- local function nextRow5()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- local function nextRow4()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
- local function gotoStart()
- turtle.forward()
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- end
- local function gotoHome()
- turtle.turnLeft()
- for i = 1, 14, 1 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.down()
- turtle.down()
- turtle.down()
- end
- local function harvest(x)
- for i = 1, x do
- chop4(4)
- nextRow5()
- chop5(5)
- nextRow4()
- end
- end
- local function depositLoop()
- turtle.select(1)
- turtle.place()
- os.sleep(900)
- os.reboot()
- gotoStart()
- harvest(9)
- gotoHome()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement