Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem=peripheral.wrap("top")
- modem.open(2)
- while true do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- if message == "ice_on" then
- rs.setOutput("right",true)
- end
- if message == "ice_off" then
- rs.setOutput("right",false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement