Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- reactor = ("lefth")
- while true do
- print("Esperando mensaje...")
- id, msg = rednet.receive()
- if (id == 6) then
- if msg == "ON" then
- redstone.setOutput("left" ,true)
- print("Reactor encendido")
- elseif msg == "OFF" then
- redstone.setOutput("left" ,false)
- print("Reactor apagado")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement