Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("<side>") --Replace side with the side the modem is on, for turtles it is the right
- while true do --Loops the following code
- local a, b, c = rednet.receive()
- local d, e, f = rednet.receive()
- local g, h, i = rednet.receive()
- print(b, e, h)
- if (e == ".") and (h == ".") then --makes a . equal no argument
- shell.run(b)
- end
- if (e ~= ".") and (h == ".") then
- shell.run(b,e)
- end
- if (e ~= ".") and (h ~= ".") then
- shell.run(b,e,h)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment