Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.find = function()
- local sides = {"top","bottom","left","right","front","back"}
- local trueSide = 0
- for s=1, 6 do if peripheral.getType(sides[s]) == "modem" then trueSide = sides[s] end end
- if trueSide ~= 0 then return trueSide end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement