Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Set up colors: black text on light gray background
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.lightGray)
- term.clear() -- apply background to entire screen
- print("Press M to Activate Horizontal Mining System")
- print(" ")
- print("Press J to Activate Laser Guided Warp System")
- -- Restore default colors for pasted scripts if they rely on them
- local function resetColors()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.black)
- end
- if not fs.exists("jzc") then
- resetColors()
- shell.run("pastebin get rfXW7SiN jzc")
- term.clear()
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.lightGray)
- end
- if not fs.exists("ztc") then
- resetColors()
- shell.run("pastebin get S9SW0zHJ ztc")
- term.clear()
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.lightGray)
- end
- while true do
- local event, key = os.pullEvent("key")
- if key == keys.m then
- print("Booting Horizontal Mining System...")
- resetColors()
- shell.run("jzc")
- -- when it returns, restore our colors
- term.clear()
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.lightGray)
- elseif key == keys.j then
- print("Booting Laser Guided Warp System...")
- resetColors()
- shell.run("ztc")
- term.clear()
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.lightGray)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement