Jump to content




Problem with turtle.craft

turtle api

3 replies to this topic

#1 Xanomes

  • Members
  • 4 posts

Posted 18 July 2015 - 08:55 AM

Hello, when I write to the turtle "turtle.craft(10)", it still crafts stack (64) of item. How to fix that?
Thanks, Xanomes

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 18 July 2015 - 02:25 PM

I haven't tested this theory, but are you using a recipe that yields more than 1 result per craft? For example, sticks. If the turtle tries to craft sticks ten times, it's going to actually try to craft 400 sticks (which will end up being a stack, because it won't craft more).

Other than that, this could be a bug.

Edit4 * 10 ~= 400. I feel stupid.

Edited by KingofGamesYami, 18 July 2015 - 08:26 PM.


#3 Xanomes

  • Members
  • 4 posts

Posted 18 July 2015 - 04:44 PM

Yes, it was my mistake. Thank you very much :)

#4 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 18 July 2015 - 05:06 PM

Uhh yami, I don't think that's how powers of 10 work. It would be 4 sticks 10 times so 40, and not a full stack. The items I can think of that might get you just a full stack would be items like blocks of gold, diamond, coal, redstone and so on. Since they give you 9 items per craft, that would be 90 and over a full stack. So it is quite possible that it stops for the stack.

Although we won't exactly know what's happening until we know two things

1. What you're trying to craft.
2. The FULL code involved, not just turtle.craft(10)

Edited by Dragon53535, 18 July 2015 - 05:07 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users