Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- while true do
- local senderId, message, distance = rednet.receive()
- -- disable all the current lights
- redstone.setOutput("left", false)
- redstone.setOutput("right", false)
- redstone.setOutput("front", false)
- redstone.setOutput("back", false)
- if message == "station_orange" then
- redstone.setOutput("left", true)
- end
- if message == "station_red" then
- redstone.setOutput("back", true)
- end
- if message == "station_blue" then
- redstone.setOutput("right", true)
- end
- if message == "station_green" then
- redstone.setOutput("front", true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment