Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- me = peripheral.call("right","getAvailableItems")
- bril = peripheral.wrap("left")
- bril.clear()
- local count = 0
- local line = 1
- for i = 1, #me do
- if count > 40 then count = 0 line = line +1 end
- count = count + 1
- line = line + 1
- bril.addIcon((line+1)/2.3,(10*count)+10,me[i]["id"],me[i]["dmg"])
- --bril.addIcon(5,(20*i)+10,me[i]["id"],me[i]["dmg"])
- --bril.addText(25,(20*i)+3+10,"x"..me[i]["qty"])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement