# CC crafter Given a layout of items, the turtle will reaarrange everything in its inventory so it would be able to craft the target item. Example: ```lua local craft = require("craft") local piston_recipe = { "minecraft:oak_planks", "minecraft:oak_planks", "minecraft:oak_planks", "minecraft:cobblestone", "minecraft:iron_ingot", "minecraft:cobblestone", "minecraft:cobblestone", "minecraft:redstone", "minecraft:cobblestone" } -- This will craft 8 pistons and return how many were successfully crafted print(craft(piston_recipe, 8)) ```