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

Crafty Turtle Help

Started by CitricThunder, 06 October 2012 - 02:04 AM
CitricThunder #1
Posted 06 October 2012 - 04:04 AM
Is it possible to move blocks in a current slot to another? Like Planks are in slot 1 and i want them in slot 1 and 2, how would i do that?
MatazaNz #2
Posted 06 October 2012 - 04:11 AM
Set up chest, lets say, under the turtle, then you could do this:

turtle.select(1)
turtle.dropDown(turtle.getItemCount(1)-1)
turtle.select(2)
turtle.suckDown()

The only requirement is for the planks to be first in the chest. Hope this helps mate.
CitricThunder #3
Posted 06 October 2012 - 04:19 AM
Set up chest, lets say, under the turtle, then you could do this:

turtle.select(1)
turtle.dropDown(turtle.getItemCount(1)-1)
turtle.select(2)
turtle.suckDown()

The only requirement is for the planks to be first in the chest. Hope this helps mate.

Oh wow that's so simple. I completely overlooked dropping it and picking it back up. Derp. Well thanks anyway it worked perfect :D/>/>
MatazaNz #4
Posted 06 October 2012 - 04:26 AM
Set up chest, lets say, under the turtle, then you could do this:

turtle.select(1)
turtle.dropDown(turtle.getItemCount(1)-1)
turtle.select(2)
turtle.suckDown()

The only requirement is for the planks to be first in the chest. Hope this helps mate.

Oh wow that's so simple. I completely overlooked dropping it and picking it back up. Derp. Well thanks anyway it worked perfect :D/>/>

You're welcome man. Are you trying to make a program to craft multiple items? Because if you are, I could help if you need it for crafty turtles again.
CitricThunder #5
Posted 06 October 2012 - 04:31 AM
Set up chest, lets say, under the turtle, then you could do this:

turtle.select(1)
turtle.dropDown(turtle.getItemCount(1)-1)
turtle.select(2)
turtle.suckDown()

The only requirement is for the planks to be first in the chest. Hope this helps mate.

Oh wow that's so simple. I completely overlooked dropping it and picking it back up. Derp. Well thanks anyway it worked perfect :D/>/>

You're welcome man. Are you trying to make a program to craft multiple items? Because if you are, I could help if you need it for crafty turtles again.

I'm actually trying to make it duplicate itself(as you have probably seen the challenge thread). Im not going to submit it though im doing it just to learn. Im gonna need to make a chest, too. I figure I just have to use that code and modify it a bit.
MatazaNz #6
Posted 06 October 2012 - 04:38 AM
Set up chest, lets say, under the turtle, then you could do this:

turtle.select(1)
turtle.dropDown(turtle.getItemCount(1)-1)
turtle.select(2)
turtle.suckDown()

The only requirement is for the planks to be first in the chest. Hope this helps mate.

Oh wow that's so simple. I completely overlooked dropping it and picking it back up. Derp. Well thanks anyway it worked perfect :D/>/>

You're welcome man. Are you trying to make a program to craft multiple items? Because if you are, I could help if you need it for crafty turtles again.

I'm actually trying to make it duplicate itself(as you have probably seen the challenge thread). Im not going to submit it though im doing it just to learn. Im gonna need to make a chest, too. I figure I just have to use that code and modify it a bit.

Best of luck friend. I'll just say that once you figure out the bulk of the code, it's so much easier from there.
CitricThunder #7
Posted 06 October 2012 - 04:41 AM
Set up chest, lets say, under the turtle, then you could do this:

turtle.select(1)
turtle.dropDown(turtle.getItemCount(1)-1)
turtle.select(2)
turtle.suckDown()

The only requirement is for the planks to be first in the chest. Hope this helps mate.

Oh wow that's so simple. I completely overlooked dropping it and picking it back up. Derp. Well thanks anyway it worked perfect :D/>/>

You're welcome man. Are you trying to make a program to craft multiple items? Because if you are, I could help if you need it for crafty turtles again.

I'm actually trying to make it duplicate itself(as you have probably seen the challenge thread). Im not going to submit it though im doing it just to learn. Im gonna need to make a chest, too. I figure I just have to use that code and modify it a bit.

Best of luck friend. I'll just say that once you figure out the bulk of the code, it's so much easier from there.

Thanks mate. I appreciate it, I could have never gotten the turtle to move without the forums.