Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Get all connected peripheral names
- local peripherals = peripheral.getNames()
- -- Iterate over each peripheral and print its location and type
- for _, side in ipairs(peripherals) do
- local type = peripheral.getType(side)
- print("Peripheral of type '" .. type .. "' found on side: " .. side)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement