Posted 30 April 2014 - 09:33 AM
Hi, I'm very new to programming lua and computercraft in general.
I have items floating around in water and would like to use a turtle to look at the items as they go past and pick them up if they are in a specific chest of items.
So if I have a chest full of dusts, the turtle will pick up all of the dust items as they go past.
I had a look at the turtle.detect and turtle.compare methods but they seem to detect the block type in front (which will always be water) and compare to the selected internal inventory slot.
Can anyone point me in the right direction to be able to do this?
I am thinking maybe have a computer next to the chest or maybe another turtle and using rednet to do the comparisons but I'm not even sure that's possible.
Thank you in advance for any help.
I have items floating around in water and would like to use a turtle to look at the items as they go past and pick them up if they are in a specific chest of items.
So if I have a chest full of dusts, the turtle will pick up all of the dust items as they go past.
I had a look at the turtle.detect and turtle.compare methods but they seem to detect the block type in front (which will always be water) and compare to the selected internal inventory slot.
Can anyone point me in the right direction to be able to do this?
I am thinking maybe have a computer next to the chest or maybe another turtle and using rednet to do the comparisons but I'm not even sure that's possible.
Thank you in advance for any help.