SHOW:
|
|
- or go back to the newest paste.
1 | local modem = peripheral.wrap("right") | |
2 | modem.open(1) | |
3 | ||
4 | while true do | |
5 | local event,side,channel,replychannel,message,distance = os.pullEvent("modem_message") | |
6 | ||
7 | if message==true then | |
8 | redstone.setOutput("front",not message) | |
9 | end | |
10 | if message==false then | |
11 | redstone.setOutput("front",not message) | |
12 | end | |
13 | end |