Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m=peripheral.wrap("top")
- p=peripheral.wrap("front")
- while true do
- size=p.getSizeInventory()
- if size>0 then
- item={}
- for i=1,size-1 do
- if p.getStackInSlot(i)~=nil then
- item[i]=p.getStackInSlot(i)["name"]
- end
- end
- m.clear()
- for i=1, size-1 do
- if item[i] ~= nil then
- --t.addText(1,i*8,item[i],0xFFFFFF)
- m.setCursorPos(1,i)
- m.write(item[i])
- end
- end
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement