Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- simple mesh
- local thisComputer = '1'
- local function findModem()
- for _, side in pairs(rs.getSides()) do
- if peripheral.isPresent(side) and peripheral.getType(side) == "modem" then
- return peripheral.wrap(side)
- end
- end
- error("Cannot find modem.", 0)
- end
- local modem = findModem()
- print(modem)
- print(modem.listMethods())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement