Advertisement
ecco7777

list items

Nov 14th, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. s=peripheral.wrap("bottom")
  2. tab={}
  3. x=0
  4. y=1
  5. a=s.list(2)
  6. while x<=3276800 do
  7. if a[x]~=nil then
  8. tab[y]=tostring(x).." : "..tostring(a[x])
  9. y=y+1
  10. end
  11. x=x+1
  12. end
  13. y=0
  14. while true do
  15. x=1
  16. term.clear()
  17. while x<=13 do
  18. term.setCursorPos(1,x)
  19. term.write(tab[x+y])
  20. x=x+1
  21. end
  22. event, key, isHeld = os.pullEvent("key")
  23. if key==200 then y=y+1 end
  24. if key==208 then y=y-1 end
  25.  
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement