Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Wheat Farm --
- local function check_wheat ()
- success, inspected = turtle.inspectDown()
- if success and inspected["state"]["age"] == 7 then
- turtle.select(16);
- turtle.digDown()
- turtle.placeDown()
- end
- end
- print("----- Wheat Farm -----")
- while true do
- current_fuel = turtle.getFuelLevel()
- print("Fuel level at: ",current_fuel)
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.turnRight()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.turnRight()
- turtle.forward()
- check_wheat()
- turtle.turnRight()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.turnLeft()
- turtle.forward()
- check_wheat()
- turtle.turnLeft()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.turnRight()
- turtle.forward()
- check_wheat()
- turtle.turnRight()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.turnLeft()
- turtle.forward()
- check_wheat()
- turtle.turnLeft()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.turnRight()
- turtle.forward()
- check_wheat()
- turtle.turnRight()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.forward()
- check_wheat()
- turtle.turnRight()
- turtle.forward()
- check_wheat()
- turtle.turnLeft()
- for i=1,15 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.turnRight()
- os.sleep(600)
- end
Add Comment
Please, Sign In to add comment