Advertisement
giwdul

list_peripherals

Jan 15th, 2024
737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | Source Code | 0 0
  1. -- Get a list of peripherals attached to the turtle
  2. local peripherals = turtle.getPeripheralList()
  3.  
  4. -- Print the list of peripherals
  5. print("Peripherals:")
  6. for _, peripheral in pairs(peripherals) do
  7.   print("  " .. peripheral)
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement