CJ-MC-Mods / Overloaded-Compressed-Blocks

Compressed Blocks for Anything. Dynamic Textures and Recipes
0 stars 0 forks source link

Add blocks by wildcard? #16

Closed PurpleHel closed 4 years ago

PurpleHel commented 4 years ago

Is it possible to add blocks to the config via wildcard? If so, how? If not, consider this a feature request. :D

cjm721 commented 4 years ago

The default config shows examples how to use regex for matching (path only, don't regex the namespace / modid).

PurpleHel commented 4 years ago

Ok, so can't use wildcards for the blocks themselves. got it. Is that something that you might change in the future? Cos it'd be really useful to be able to just add like, anything from a given mod that has 'block' in the name.

braingkk commented 4 years ago

the last three examples in the default config show uses of wildcards


 {
    "baseRegistryName": "minecraft:.*_log",
    "depth": 16,
    "hardnessMultiplier": 9.0,
    "recipeEnabled": true
  },
  {
    "baseRegistryName": "minecraft:.*_wool",
    "depth": 16,
    "hardnessMultiplier": 9.0,
    "recipeEnabled": true
  },
  {
    "baseRegistryName": "minecraft:.*_concrete$",
    "depth": 16,
    "hardnessMultiplier": 9.0,
    "recipeEnabled": true
  } 
PurpleHel commented 4 years ago

I must have gotten a config from some pack, cos there's no examples in mine. :/ Sorry for the question! I'll make the default config generate and take a look!