Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- monitor redstone inputs and broadcast
- -- as required.
- -- front = blue line
- -- left = red line
- -- back = orange line
- -- right = green line
- -- initiate the wireless modem
- rednet.open("top")
- while true do
- os.pullEvent("redstone")
- -- check all inputs, broadcast as required
- if rs.getInput("front") == true then
- print("BLUE LINE ACTIVATE!")
- rednet.broadcast("station_blue")
- end
- if rs.getInput("left") == true then
- print("RED LINE ACTIVATE!")
- rednet.broadcast("station_red")
- end
- if rs.getInput("back") == true then
- print("ORANGE LINE ACTIVATE!")
- rednet.broadcast("station_orange")
- end
- if rs.getInput("right") == true then
- print("GREEN LINE ACTIVATE!")
- rednet.broadcast("station_green")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment