Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local count = 0
- local function farmer()
- if (rs.getInput("bottom") == true) then
- print(turtle.getFuelLevel())
- os.sleep(20)
- turtle.turnRight()
- --turtle.turnRight()
- turtle.dig()
- turtle.forward()
- else
- turtle.dig()
- -- if(turtle.compareDown() == turtle.compareTo(1)) then
- turtle.digDown()
- -- end
- turtle.forward()
- end
- count = count + 1
- if(count == 10) then
- os.reboot()
- else
- farmer()
- end
- end
- farmer()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement