Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chest=peripheral.wrap("left")
- colors={
- 1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768
- }
- args={ ... }
- if args[1]==nil then
- args={1,1,1}
- end
- function checkContents()
- repeat
- content=0
- for i=1,27 do
- slotContent=chest.getStackInSlot(i)
- if slotContent==nil then
- content=content
- else
- content=content+1
- end
- end
- if content>0 then
- sleep(1)
- end
- until content<=0
- return content
- end
- function colorCycle()
- colorL,colorM,colorR=chest.getColors()
- for i=0+tonumber(args[1]),16 do
- colorL=colors[i]
- for i=0+tonumber(args[2]),16 do
- colorM=colors[i]
- for i=0+tonumber(args[3]),16 do
- colorR=colors[i]
- chest.setColours(colorL,colorM,colorR)
- checkContents()
- end
- end
- end
- end
- colorCycle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement