Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x, y, xsize, ysize
- local idChannel = 2
- modem = peripheral.wrap("back")
- rednet.open("back")
- while true do
- local event = os.pullEvent("redstone")
- rednet.send(32, 33, 31, "ping")
- redstone.setOutput("left", false)
- if redstone.getInput("top") then
- rednet.broadcast("ping")
- redstone.setOutput("left", true)
- sleep(1)
- redstone.setOutput("left", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement