getBlockIds - FireDragon91245/CCT-Resource-API GitHub Wiki
getBlockIds
signature:
getBlockIds(
containsFilter: str | filter: table {
[blockid: regex],
[modid: regex]
}
)
return: table: str[]
performance impact: medium
examples
- returns all block ids that contain "ore"
getBlockIds("ore")
- returns all block ids that contain "ore" and are from the mod "minecraft"
getBlockIds({blockid=".*ore.*", modid="minecraft"})