Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Test dostupneho API Condenseru
- -- Nic nemeni, pouze vypisuje metody
- local sides = {
- "front", "back",
- "top", "bottom",
- "left", "right"
- }
- for _, side in ipairs(sides) do
- if peripheral.isPresent(side) then
- print("==========")
- print("Strana:", side)
- print("Typ:", peripheral.getType(side))
- local methods =
- peripheral.getMethods(side) or {}
- table.sort(methods)
- for _, method in ipairs(methods) do
- print(method)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment