Advertisement
ksaw000

Get list of methods from a side!

Jan 8th, 2025 (edited)
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. side="top"
  2. local file = fs.open("out.txt", "w")
  3. local methods = peripheral.getMethods(side)
  4.  
  5. for _, method in ipairs(methods) do
  6.     file.writeLine(method)
  7. end
  8. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement