Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap("top")
- modem.open(42)
- while true do
- local event, modemside, senderchannel, replychannel, message, senderdistance = os.pullEvent("modem_message")
- if message == "left on" then
- redstone.setOutput("left", true)
- else if message == "left off" then
- redstone.setOutput("left", false)
- else if message == "right on" then
- redstone.setOutput("right", true)
- else if message == "right off" then
- redstone.setOutput("right", false")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement