Download Polymer PackSquash — Minecraft Mods — MetaMods

Polymer PackSquash

Active

Downloads

0

Last update

2 months ago

Versions

1.21.6 — 1.21.8
Server
Fabric
Control
Game optimization

Polymer PackSquash Integration

This mod combines the capabilities of PackSquash with Polymer's resource pack generation system, providing automatic optimization of created resource packs. Now you won't need to manually compress files after making changes.

Setup

To get started you'll need:

  • Download the latest version of PackSquash
  • Place the executable file at the path: polymer/packsquash

The mod automatically creates a configuration file packsquash.toml in the polymer folder. These paths are used by default but can be changed in the settings file config/polymer-squasher.json.

Default Configuration

{
  "enabled": true,
  "log-packsquash": false,
  "log-hash-mismatch": false,
  "packsquash-path": "polymer/packsquash",
  "packsquash-toml-path": "polymer/packsquash.toml",
  "ignore-hash-paths": [
    "polymer-credits.txt"
  ],
  "force-size-based-hash": false
}

Configuration Parameters

  • enabled — enables or disables the integration
  • log-packsquash — outputs PackSquash results to the log
  • log-hash-mismatch — registers cases of file hash changes (useful for debugging)
  • packsquash-path — path to the PackSquash executable file
  • packsquash-toml-path — path to the TOML configuration file for PackSquash
  • ignore-hash-paths — list of path prefixes to skip when calculating hashes
  • force-size-based-hash — when set to true, uses file size instead of full hashing (faster but less accurate)

How It Works

When activated, the mod calculates hashes for all files of the generated resource pack. The obtained hashes are saved in the file polymer/hashes.json. If no changes are detected since the previous run, the PackSquash process is skipped. When changes are identified, the mod automatically launches PackSquash after Polymer completes resource pack generation. If the process completes successfully, the optimized version of the resource pack is used.

Project members
tomalbrc

tomalbrc

Developer

Created: 21 Aug 2025

ID: 262407