Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arg1=...
- cm=require("component")
- si=require("sides")
- s=si.east
- c=require("colors")
- rs=cm.redstone
- s1=c.red
- s2=c.green
- s3=c.brown
- s4=c.blue
- s5=c.purple
- s6=c.cyan
- p1=c.pink
- p2=c.lime
- office=c.yellow
- utility=c.orange
- doors = { "s1", "s2", "s3", "s4", "s5", "s6", "p1", "p2", "office", "utility"}
- doorMatched=false
- function openDoor(input)
- rs.setBundledOutput(s, input, 255)
- end
- for i,v in ipairs(doors) do
- if v == arg1 then
- doorMatched=true
- openDoor(arg1)
- end
- end
- if doorMatched==false then
- print("No valid door found")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement