Difference between revisions of "Turtle.craft"

From ComputerCraft Wiki
Jump to: navigation, search
(16 slots)
Line 7: Line 7:
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Requires a [[Crafty Turtle]].
 
|desc=Requires a [[Crafty Turtle]].
Crafts an item as if the nine top left slots was a crafting table. (slots 1,2,3,5,6,7,9,10,11).
+
Crafts an item as if the nine top left slots was a crafting table. (slots 1,2,3,5,6,7,9,10,11,12,13,14,15,16).
 
Can craft a maximum of one stack of items at a time; for example, if you put three stacks of 64 reed in a line and craft them, only 63 paper will be crafted, and three piles of 43 reed will remain in the turtle.
 
Can craft a maximum of one stack of items at a time; for example, if you put three stacks of 64 reed in a line and craft them, only 63 paper will be crafted, and three piles of 43 reed will remain in the turtle.
 
Will not craft if there are any items in the turtle's inventory that are not part of the recipe, including in the slots not used for crafting.
 
Will not craft if there are any items in the turtle's inventory that are not part of the recipe, including in the slots not used for crafting.

Revision as of 17:55, 10 August 2012


Grid Redstone.png  Function turtle.craft
Requires a Crafty Turtle.

Crafts an item as if the nine top left slots was a crafting table. (slots 1,2,3,5,6,7,9,10,11,12,13,14,15,16). Can craft a maximum of one stack of items at a time; for example, if you put three stacks of 64 reed in a line and craft them, only 63 paper will be crafted, and three piles of 43 reed will remain in the turtle. Will not craft if there are any items in the turtle's inventory that are not part of the recipe, including in the slots not used for crafting.

The produced items will appear in the selected slot, if that slot is free. If not, it will try the next available slot.
Syntax turtle.craft()
Returns true if an item was crafted; false otherwise.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Make some items.
Code
turtle.suck()