Advertisement
CelticCoder

newtest

Aug 8th, 2024
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. -- Get all connected peripheral names
  2. local peripherals = peripheral.getNames()
  3.  
  4. -- Iterate over each peripheral and print its location and type
  5. for _, side in ipairs(peripherals) do
  6. local type = peripheral.getType(side)
  7. print("Peripheral of type '" .. type .. "' found on side: " .. side)
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement