Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if fs.exists('/data/mineSize') then
- local timer = os.startTimer(5)
- print("Press enter in the next 5 seconds to reset Turtle")
- while true do
- local event, result = os.pullEvent()
- if event == "timer" and timer == result then
- print("Mining Resumed")
- shell.run("mine")
- break
- elseif event == "key" then
- if result == keys.enter then
- if fs.exists('/data/mineSize') then
- fs.delete("/data/mineSize")
- fs.delete("/data/currentLocation")
- break
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement