mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-28 08:03:21 +00:00
11 lines
293 B
Lua
11 lines
293 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
|