Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local event = require("event")
- local robot = require("robot")
- local component = require("component")
- local modem = component.modem
- modem.open(51)
- while true do
- local name, _, _, _, _, message = event.pull("modem_message")
- if name == 'modem_message' then
- if message == "1" then
- robot.select(1)
- robot.drop()
- elseif message == "2" then
- robot.select(2)
- robot.drop()
- elseif message == "3" then
- robot.select(3)
- robot.drop()
- elseif message == "4" then
- robot.select(4)
- robot.drop()
- elseif message == "5" then
- robot.select(5)
- robot.drop()
- elseif message == "6" then
- robot.select(6)
- robot.drop()
- elseif message == "7" then
- robot.select(7)
- robot.drop()
- elseif message == "8" then
- robot.select(8)
- robot.drop()
- elseif message == "9" then
- robot.select(9)
- robot.drop()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement