This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
simonmayor's profile picture

slot 1 cannot accept item help

Started by simonmayor, 24 July 2015 - 09:20 PM
simonmayor #1
Posted 24 July 2015 - 11:20 PM
I am working with spatial storage at the moment and I want a way in and out solo, so I made this but it doesn't seem to be doing what it should be…


p = peripheral..wrap("bottom")

while true do

if not (p.getStackInSlot(1)) then
p.swapStacks(1,2)
end

sleep(5)

end
flaghacker #2
Posted 24 July 2015 - 11:53 PM
Slot numbers start counting from 0, so the first slot is number 0, the second number 1 and so forth.