Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tickcount = 0
- --FUELCHECKER
- function fuelchecker()
- fuel = turtle.getFuelLevel()
- while fuel < 25 do
- term.clear()
- term.setCursorPos(1,1)
- print("Need Fuel Put Fuel in Slot 16")
- turtle.select(16)
- turtle.refuel(1)
- fuel = turtle.getFuelLevel()
- sleep(.2)
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Turtle is fueled and ready to start!")
- sleep(2)
- end
- --END FUELCHECKER
- --HARVEST
- function harvest()
- while tickcount < 3 do
- if rs.getInput("front") then
- tickcount = tickcount + 1
- term.clear()
- term.setCursorPos(1,1)
- print(tickcount)
- sleep(2)
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Warts still growing!")
- term.setCursorPos(1,2)
- print("Be patient!")
- term.setCursorPos(1,3)
- print(tickcount)
- end
- end
- turtle.up()
- turtle.forward()
- turtle.forward()
- for j = 1,4 do
- for i=1,5 do
- if i < 5 then
- turtle.select(1)
- turtle.digDown()
- turtle.placeDown()
- turtle.forward()
- else
- turtle.select(1)
- turtle.digDown()
- turtle.placeDown()
- end
- for k = 1,4 do
- turtle.back()
- end
- end
- if j < 4 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- else
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.back()
- for h = 1,11 do
- turtle.select(h)
- turtle.dropUp()
- end
- turtle.back()
- turtle.down()
- end
- --END HARVEST
- --ACTUAL PROGRAM
- fuelchecker()
- harvest()
- --END ACTUAL PROGRAM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement