Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...} -- Find a method
- local methods = {} -- on a given side
- if #tArgs < 1 then
- error("I need a side!!")
- else
- local side = tArgs[1]
- if not peripheral.isPresent(side) then
- error("No peripheral is attached!!")
- else
- methods = peripheral.getMethods(side)
- textutils.pagedTabulate(methods)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment