-
-
Save croxis/5326758 to your computer and use it in GitHub Desktop.
mc2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
computer_0 mission control | |
monitor_1 monitor | |
computer_2 force field generator | |
MISSION CONTROL LAUNCH WARNING | |
--]] | |
print("Starting mission control launch warning system") | |
modem = peripheral.wrap('right') | |
modem.open(1926) | |
while true do | |
_, side, freq, rfreq, message = os.pullEvent('modem_message') | |
if freq == 1926 then | |
if message == "launch-shield" then | |
redstone.setOutput("back", true) | |
end | |
if message == "disable-shield" then | |
redstone.setOutput("back", false) | |
end | |
end | |
end | |
print("End") | |
redstone.setOutput("back", false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment