Advertisement
fantadada

rect_big_port

Apr 2nd, 2023
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. rednet.open("bottom")
  2. p = peripheral.wrap("back")
  3.  
  4. local id = //
  5. local id_rect = //
  6.  
  7. term.clear()
  8. term.setBackgroundColor(colors.gray)
  9. term.setCursorPos(24,9)
  10. term.write("Controlleur reacteur"..id_rect)
  11.  
  12.  
  13. while true do
  14.  
  15.     if p.getActive()then
  16.         rednet.send(id, "rect_"..id_rect.."_on")
  17.     else
  18.         rednet.send(id, "rect_"..id_rect.."_off")
  19.     end
  20.  
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement