Advertisement
NanoBob

ender chest

Jun 22nd, 2014
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. chest=peripheral.wrap("left")
  2.  
  3. function checkContents()
  4.     repeat
  5.         content=0
  6.         for i=i,27 do
  7.             slotContent=getStackInSlot(i)
  8.             content=content+slotContent
  9.         end
  10.         sleep(1)
  11.     until content<=0
  12.    
  13. end
  14.  
  15. function colorCycle()
  16.     colorL,colorM,colorR=getColors()
  17.     for i=1,16 do
  18.         colorL=i
  19.         for i=1,16 do
  20.             colorM=i
  21.             for i=1,16 do
  22.                 colorR=i
  23.                 chest.setColours(colorL,colorM,colorR)
  24.                 checkContents()
  25.             end
  26.         end
  27.     end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement