Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function detectLit()
- local success, data = turtle.inspectDown()
- if success then
- if data.state.lit then
- return true
- else
- return false
- end
- end
- end
- function stoke()
- turtle.dropDown()
- sleep(0.5)
- turtle.suckDown()
- end
- while true do
- if detectLit() == false then
- stoke()
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement