Advertisement
Guest User

test

a guest
Sep 20th, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local terminalGlassesBridge = peripheral.wrap("left")
  2. local chest = peripheral.wrap("bottom")
  3.  
  4. while(true) do
  5.     i = 0
  6.     y = 1
  7.     invSize = chest.getSizeInventory()
  8.     while(y <= invSize) do
  9.         local tableInfo = chest.getStackInSlot(y)
  10.         if(tableInfo ~= nil) then
  11.             i = i + 1
  12.         end
  13.         y = y + 1
  14.         sleep(0.25)
  15.     end
  16.    
  17.     if(i >= invSize) then
  18.         terminalGlassesBridge.addText(15, 50, "CHEST IS FULL! PLEASE REVIEW!", colors.red)
  19.     end
  20.     sleep(3)
  21.     terminalGlassesBridge.clear()
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement