Sol.data.crafts.GetCraftMaterials

Sol.data.crafts.GetCraftMaterials = function(itemName)

Get the materials needed to craft the specified item

Parameters: + itemName - the name of the crafted item

Returns: + a table of item data, each entry being the return values of GetCraftRequestItem

Example: local mats = Sol.data.crafts.GetCraftMaterials("Basic Medicine") for index, data in pairs(mats) do   Sol.io.Print(data.texture) Sol.io.Print(data.name) Sol.io.Print(data.amountNeeded) Sol.io.Print(data.amountInInventory) end