A Rust utility for replacing Minecraft mod JAR files while maintaining exact file sizes. Can be used to bypass the hashsum checks for prebuilt minecraft server clients. For educational purposes only.
- Exact size matching with automatic padding
- Interactive file selection and console menu
- Smart ZIP comment padding with fallback method
- Automatic mod folder scanning
- Size validation
- Clone or download this project
- Build with Cargo:
cargo build --release- Run the executable
- Select your replacement JAR file via file dialog
- Enter path to your Minecraft mods folder
- Choose which mod to replace from the list
- Tool automatically pads to match original file size
Maintains file size through two methods:
- ZIP Comment Padding: Modifies JAR's End of Central Directory record (preferred)
- Simple Append: Adds null bytes if ZIP method fails (fallback)
[package]
name = "minecraft_mod_replacer"
version = "0.1.0"
edition = "2025"
[dependencies]
dialoguer = "0.11.0"
rfd = "0.15.4"