Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("right")
- modem.open(42)
- while true do
- shell.run("clear")
- if rs.getInput("side") then
- print("redstone ON")
- modem.transmit(42, 1, "stop")
- else
- print("redstone OFF")
- end
- os.pullEvent("redstone")
- end
- end
Add Comment
Please, Sign In to add comment