Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- p = peripheral.wrap("back")
- local id = //
- local id_rect = //
- term.clear()
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(24,9)
- term.write("Controlleur reacteur"..id_rect)
- while true do
- if p.getActive()then
- rednet.send(id, "rect_"..id_rect.."_on")
- else
- rednet.send(id, "rect_"..id_rect.."_off")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement