Advertisement
maxtorcd55

Untitled

Apr 17th, 2014
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. me = peripheral.call("right","getAvailableItems")
  2. bril = peripheral.wrap("left")
  3.  
  4. bril.clear()
  5. local count = 0
  6. local line = 1
  7. for i = 1, #me do
  8. if count > 40 then count = 0 line = line +1 end
  9. count = count + 1
  10. line = line + 1
  11.  
  12. bril.addIcon((line+1)/2.3,(10*count)+10,me[i]["id"],me[i]["dmg"])
  13.  
  14. --bril.addIcon(5,(20*i)+10,me[i]["id"],me[i]["dmg"])
  15. --bril.addText(25,(20*i)+3+10,"x"..me[i]["qty"])
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement