Jump to content




Crafty Turtle Help


  • You cannot reply to this topic
6 replies to this topic

#1 CitricThunder

  • Members
  • 33 posts

Posted 06 October 2012 - 03: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?

#2 MatazaNz

  • Members
  • 42 posts
  • LocationNew Zealand

Posted 06 October 2012 - 03: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.

#3 CitricThunder

  • Members
  • 33 posts

Posted 06 October 2012 - 03:19 AM

View PostMatazaNz, on 06 October 2012 - 03:11 AM, said:

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/>

#4 MatazaNz

  • Members
  • 42 posts
  • LocationNew Zealand

Posted 06 October 2012 - 03:26 AM

View Postcaptainprice12, on 06 October 2012 - 03:19 AM, said:

View PostMatazaNz, on 06 October 2012 - 03:11 AM, said:

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.

#5 CitricThunder

  • Members
  • 33 posts

Posted 06 October 2012 - 03:31 AM

View PostMatazaNz, on 06 October 2012 - 03:26 AM, said:

View Postcaptainprice12, on 06 October 2012 - 03:19 AM, said:

View PostMatazaNz, on 06 October 2012 - 03:11 AM, said:

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.

#6 MatazaNz

  • Members
  • 42 posts
  • LocationNew Zealand

Posted 06 October 2012 - 03:38 AM

View Postcaptainprice12, on 06 October 2012 - 03:31 AM, said:

View PostMatazaNz, on 06 October 2012 - 03:26 AM, said:

View Postcaptainprice12, on 06 October 2012 - 03:19 AM, said:

View PostMatazaNz, on 06 October 2012 - 03:11 AM, said:

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.

#7 CitricThunder

  • Members
  • 33 posts

Posted 06 October 2012 - 03:41 AM

View PostMatazaNz, on 06 October 2012 - 03:38 AM, said:

View Postcaptainprice12, on 06 October 2012 - 03:31 AM, said:

View PostMatazaNz, on 06 October 2012 - 03:26 AM, said:

View Postcaptainprice12, on 06 October 2012 - 03:19 AM, said:

View PostMatazaNz, on 06 October 2012 - 03:11 AM, said:

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.





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users