Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- parallel.waitForAny(
- function()
- shell.run"shell"
- end,
- function()
- while true do
- local event = {os.pullEventRaw()}
- if type(event[1]) == "string" then
- local match = string.match(event[1],"^edu_(.*)")
- if match and turtle[match] then
- turtle[match]()
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment