Posted 29 June 2013 - 07:52 AM
Long story short: I have a mining program that digs everything out in a straight line; and plugs in the walls with cobble. (so no lava spilling everywhere…) I have a second program that drops everything that isn't cobble or torches, and then I manually refill any lost cobble (cobble goes in slots 1-3, torches in 16).
I want to change this (if it's possible), to go through the inventory - and ensure that slots 1-3 have 64 cobble; and dump the rest.
So I guess I start off with turtle.getItemSpace(1) (through 3); and if the result is greater than 0, look for cobble in one of the other slots (4-15), then use turtle.transferTo() to move it around.
Question Time:
Is there possibly an easier way of doing this? Or do I have about the gist of what I need to do? :)/>
TIA :)/>
I want to change this (if it's possible), to go through the inventory - and ensure that slots 1-3 have 64 cobble; and dump the rest.
So I guess I start off with turtle.getItemSpace(1) (through 3); and if the result is greater than 0, look for cobble in one of the other slots (4-15), then use turtle.transferTo() to move it around.
Question Time:
Is there possibly an easier way of doing this? Or do I have about the gist of what I need to do? :)/>
TIA :)/>