Posted 25 June 2013 - 07:29 PM
I am trying to make a program that simply dumps all but the first slot of a chest from one chest into another (ender chest) to do this I used an Misc Peripherals Inventory Module Chest Turtle.
I used the following code:
But all I get when I try it is
I used the following code:
inv=peripheral.wrap("left")
chest=peripheral.wrap("right")
function onLoad(s,e)
for i=s,e do
inv.suck(i)
end
end
function offLoad(page)
chest.setPage(page)
chest.swapRange(1,16)
for i=1,16 do
turtle.drop(i)
end
end
while true do
chest.setPage(1)
onLoad(2,16)
chest.swapRange(1,16)
chest.setPage(2)
onLoad(17,27)
chest.swapRange(1,16)
turtle.turnRight()
offLoad(1)
offLoad(2)
turtle.turnLeft()
sleep(10)
end
But all I get when I try it is
startup:19: 16