Advertisement
Guest User

ice

a guest
Dec 17th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local modem=peripheral.wrap("top")
  2. modem.open(2)
  3. while true do
  4.   local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  5.   if message == "ice_on" then
  6.     rs.setOutput("right",true)
  7.   end
  8.   if message == "ice_off" then
  9.     rs.setOutput("right",false)
  10.   end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement