Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Functions
- local function right()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- local function left()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- local function startR()
- turtle.forward()
- turtle.down()
- turtle.turnRight()
- for i=1,11 do
- turtle.forward()
- end
- end
- local function seeds()
- for i=1,2 do
- local numC = 0
- local numV = turtle.getItemCount()
- if numV == numC then
- turtle.select(i)
- sleep()
- elseif numV ~= numC then
- end
- end
- end
- local function dump()
- turtle.turnLeft()
- for u=2,16 do
- turtle.select(u)
- for i=1,13 do
- turtle.drop()
- end
- end
- turtle.turnRight()
- turtle.turnRight()
- end
- local function move()
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- end
- local function plant()
- for i=1,12 do
- move()
- end
- end
- local function wait()
- p = 660
- term.clear()
- term.setCursorPos(1,1)
- print("Waiting for crops to grow")
- for i=0,660 do
- term.setCursorPos(1,3)
- print("Progress Completed "..i.."/"..p)
- sleep(1)
- end
- term.setCursorPos(1,3)
- print("Progress Completed 100% ")
- end
- --Main Program
- while true do
- turtle.up()
- seeds()
- for i=1,5 do
- plant()
- seeds()
- right()
- plant()
- seeds()
- left()
- end
- plant()
- seeds()
- right()
- plant()
- seeds()
- startR()
- dump()
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement