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?
turtle.select(1)
turtle.dropDown(turtle.getItemCount(1)-1)
turtle.select(2)
turtle.suckDown()
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.
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/>/>
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.
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.
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.