Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fix()
- turtle.select(2)
- turtle.dig()
- turtle.place()
- turtle.select(1)
- end
- function checkFail()
- if turtle.suckDown() then
- turtle.dropUp()
- return false
- else
- print('Fixing...')
- return true
- end
- end
- turtle.select(1)
- while true do
- sleep(20)
- if checkFail() then
- fix()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement