Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m, p = peripheral.wrap(peripheral.wrap("bottom").getNamesRemote()[1]), {}
- if m then
- for n in pairs(m) do
- p[#p + 1] = n
- end
- for i = 1, #p, 10 do
- local s = i + 9
- for j = i, math.min(s, #p) do
- print(p[j])
- end
- os.pullEvent("key")
- end
- else
- print("Peripheral not found.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement