Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("left")
- modem.open(10)
- ison = false
- while true do
- local event,side,channel,replychannel,message,distance = os.pullEvent("modem_message")
- if message==true then
- ison = not ison
- redstone.setOutput("front",not ison)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement