Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cycle ()
- while true do
- turtle.place()
- turtle.dig()
- end
- end
- function stahp ()
- while true do
- evt,button=os.pullEvent()
- if evt=="key" then
- print("Key pressed: "..button)
- break
- end
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Breaking Blocks")
- print("Press any key to terminate...")
- parallel.waitForAny(cycle,stahp)
Advertisement
Add Comment
Please, Sign In to add comment