Advertisement
pierrejean

repère

May 29th, 2024 (edited)
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local sides = {"left", "right", "top", "bottom", "front", "back"}
  2.  
  3. for _, side in ipairs(sides) do
  4.     local device = peripheral.wrap(side)
  5.     if device then
  6.         print("Périphérique sur " .. side .. ": " .. peripheral.getType(side))
  7.     else
  8.         print("Aucun périphérique sur " .. side)
  9.     end
  10. end
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement