Advertisement
Punio

ReactorReceiver

Jan 1st, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. receiverID = 0
  2.  
  3. rednet.open("top")
  4.  
  5. while true do
  6.  local ID, input = rednet.receive()
  7.  
  8.  if ID == receiverID then
  9.    local output = (2^(input))-1
  10.    rs.setBundledOutput("bottom", output)
  11.  end
  12.  
  13.  sleep(.1)
  14. end
  15.  
  16. rednet.close("top")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement