Advertisement
Tomyf4

TestWrap

Feb 19th, 2024 (edited)
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. local m, p = peripheral.wrap(peripheral.wrap("bottom").getNamesRemote()[1]), {}
  2. if m then
  3. for n in pairs(m) do
  4. p[#p + 1] = n
  5. end
  6. for i = 1, #p, 10 do
  7. local s = i + 9
  8. for j = i, math.min(s, #p) do
  9. print(p[j])
  10. end
  11. os.pullEvent("key")
  12. end
  13. else
  14. print("Peripheral not found.")
  15. end
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement