1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-07-09 05:22:52 +00:00
2019-12-07 10:33:47 +00:00

11 lines
296 B
Lua

local tPeripherals = peripheral.getNames()
print( "Attached Peripherals:" )
if #tPeripherals > 0 then
for n = 1, #tPeripherals do
local sPeripheral = tPeripherals[n]
print( sPeripheral .. " (" .. peripheral.getType( sPeripheral ) .. ")" )
end
else
print( "None" )
end