Advertisement
Zekrommaster110

[LUA | CC1.4.7] Remote Control Panel CLIENT

Nov 5th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. -- OPEN REDNET PORT
  2. sides = {"top", "bottom", "front", "back", "left", "right"}
  3. i = 6
  4. while i >= 1 do
  5.     if peripheral.isPresent(sides[i]) == true then
  6.         rednet.open(sides[i])
  7.     end
  8.     i = i - 1
  9. end
  10.  
  11. while true do
  12.    
  13.     id, message = rednet.receive()
  14.     redstone.setOutput("back", message)
  15.    
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement