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

Problem with turtle.craft

Started by Xanomes, 18 July 2015 - 07:55 AM
Xanomes #1
Posted 18 July 2015 - 09: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
KingofGamesYami #2
Posted 18 July 2015 - 03: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 on 18 July 2015 - 07:26 PM
Xanomes #3
Posted 18 July 2015 - 05:44 PM
Yes, it was my mistake. Thank you very much :)/>
Dragon53535 #4
Posted 18 July 2015 - 06: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 on 18 July 2015 - 04:07 PM