Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chest = peripheral.wrap("right")
- chest.condenseItems()
- local ok=2
- while ok==2 do
- ok=0
- for i=1,27 do
- if chest.getStackInSlot(i)~=nil and ok==0 then
- local slot = chest.getStackInSlot(i)
- print(slot.name.." is in slot "..i)
- if slot.name=="soul_sand" then
- print("Pushing soul sand down from "..i)
- chest.pushItem("down",i,4)
- ok=1
- end
- -- else
- -- print ("slot "..i.." is empty.")
- end
- end
- sleep(1)
- for i=1,27 do
- if chest.getStackInSlot(i)~=nil and ok==1 then
- local slot = chest.getStackInSlot(i)
- print(slot.name.." is in slot "..i)
- if slot.name=="skull" then
- print("Pushing skull down from "..i)
- chest.pushItem("down",i,3)
- ok=2
- end
- end
- end
- sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement