Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap
- while true do
- Shield = peripheral.find("warpdriveForceFieldProjector")
- Cloaking = peripheral.find("warpdriveCloakingCore")
- term.clear()
- term.setCursorPos(1,1)
- write(">")
- state = read("")
- if state == "stealth1" then
- for i=1,#Shield do
- peripheral.call(Shield[i], "enable")
- end
- for i=1,#Cloaking do
- peripheral.call(Cloaking[i], "cloak1")
- end
- elif state == "stealth2" then
- for i=1,#Shield do
- peripheral.call(Shield[i], "enable")
- end
- for i=1,#Cloaking do
- peripheral.call(Cloaking[i], "cloak2")
- end
- elif state == "shieldOn" then
- for i=1,#Shield do
- peripheral.call(Shield[i], "enable")
- end
- elif state == "shieldOff" then
- for i=1,#Shield do
- peripheral.call(Shield[i], "disable")
- end
- elif state == "Cloak1" then
- for i=1,#Cloaking do
- peripheral.call(Cloaking[i], "cloak1")
- end
- elif state == "Cloak2" then
- for i=1,#Cloaking do
- peripheral.call(Cloaking[i], "cloak2")
- end
- elif state == "Uncloak" then
- for i=1,#Cloaking do
- peripheral.call(Cloaking[i], "uncloak")
- end
- elif state == "Red Alert" then
- redstone.setOutput("front")
- redstone.setOutput("back")
- redstone.setOutput("left")
- redstone.setOutput("right")
- redstone.setOutput("top")
- redstone.setOutput("bottom")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement