Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wait()
- sleep(5)
- print(turtle.getFuelLevel())
- end
- function dig()
- turtle.dig()
- turtle.suck()
- turtle.dropDown()
- redstone.setOutput("bottom", true)
- sleep(1)
- redstone.setOutput("bottom", false)
- inspect()
- end
- function inspect()
- local booleanValue, potatoInfo = turtle.inspect()
- print(booleanValue)
- if (booleanValue == true) then
- print("grown")
- dig()
- else
- --Fix
- print("not grown")
- wait()
- inspect()
- end
- end
- inspect()
Add Comment
Please, Sign In to add comment