Advertisement
Guest User

test4

a guest
Aug 4th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. t=peripheral.wrap("top")
  2. p=peripheral.wrap("front")
  3.  
  4. while true do
  5. size=p.getSizeInventory()
  6.  if size>0 then
  7.   item={}
  8.   for i=1,size-1 do
  9.    if p.getStackInSlot(i)~=nil then
  10.    item[i]=p.getStackInSlot(i)["name"]
  11.    end
  12.   end
  13.   t.clear()
  14.   for i=1, size-1 do
  15.    if item[i] ~= nil then
  16.    t.addText(1,i*8,item[i],0xFFFFFF)
  17.    end
  18.   end
  19.  end
  20.  sleep(1)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement