getRecipeIds - FireDragon91245/CCT-Resource-API GitHub Wiki

getRecipeIds

signature:

getRecipeIds(
    containsFilter: str | filter: table {
        [recipeid: regex],
        [modid: regex]
    }
)

return: table: str[]
performance impact: medium

examples

  • returns all recipe ids that contain "stone"
getRecipeIds("stone")
  • returns all recipe ids that contain "stone" and are from the mod "minecraft"
getRecipeIds({recipeid=".*stone.*", modid="minecraft"})