Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SERVER_PORT = 20
- local modem = peripheral.wrap("top")
- modem.open(SERVER_PORT)
- local id, message = rednet.receive()
- if message == "on" then
- redstone.setAnalogOutput("back",15)
- print("Shield is active!")
- end
- if message == "off" then
- redstone.setAnalogOutput("back",0)
- print("Shield has been deactivated!")
- end
Advertisement
Add Comment
Please, Sign In to add comment