Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("top")
- local modem_channel = 1
- modem.open(modem_channel)
- while true do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- print("The message was: "..message)
- redstone.setAnalogOutput("right",tonumber(message))
- sleep(1)
- end
Add Comment
Please, Sign In to add comment