getItemIds - FireDragon91245/CCT-Resource-API GitHub Wiki

getItemIds

signature:

getItemIds(
    containsFilter: str | filter: table {
        [itemid: regex],
        [modid: regex]
    }
)

return: table: str[]
performance impact: medium

examples

  • returns all item ids that contain "ingot"
getItemIds("ingot")
  • returns all item ids that contain "ingot" and are from the mod "minecraft"
getItemIds({itemid=".*ingot.*", modid="minecraft"})