Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Slave--
- local tArgs = { ... }
- local sides = {"top","bottom","left","right","front","back"}
- for _,v in ipairs(sides) do
- if peripheral.getType( v ) == "modem" then
- rednet.open( v )
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- function slave()
- while true do
- r = {rednet.receive("sm")}
- if r and r[2] then
- loadstring(r[2])()
- end
- end
- end
- slave()
Add Comment
Please, Sign In to add comment