Pack Entries Blocker
This mod prevents specific resources from being loaded from designated packs based on path matching with regular expressions. This is particularly useful for optimizing game launch times.
Why This Is Needed
Certain modifications like GeckoLib or Optifine-like optimizers extensively search for resources across all available packs, significantly increasing game loading time. You can identify performance bottlenecks using dedicated profiling tools.
You can also disable unnecessary elements within packs, such as specific CIT (Custom Item Textures).
How to Use
Configure settings in the config/pack-entries-blocker.json file - changes apply automatically before data/resource packs reload.
During blocking operations, information about blocked entries is logged to debug.log for debugging purposes.
The location of debug.log can be configured using appropriate tools by modifying logging parameters.
Configuration Example
The following example blocks all tags from the vanilla pack:
{
".?:.?tag.*?": [
"vanilla"
]
}
Here, the key contains a regular expression, and the value is an array of pack names that can be found in the options.txt file.