Posted 07 October 2016 - 12:10 AM
Disclamer:
Im not a coder so hope its not to sloppy and this is first attempt with computercraft
Trying to get a pim to strip all items/armor and place in chest when ever its stepped on
Works after I reboot the computer
then returns error
player:11: -1
any idea on how to make it continue to work with out needing the reboots
Im not a coder so hope its not to sloppy and this is first attempt with computercraft
Trying to get a pim to strip all items/armor and place in chest when ever its stepped on
pim = peripheral.wrap("right")
chest = "north"
size = pim.getInventorySize()
while size == 0 do
sleep(1)
end
for i=size, 0,-1 do
pim.pushItem(chest, i)
end
Works after I reboot the computer
then returns error
player:11: -1
any idea on how to make it continue to work with out needing the reboots