Function Command Deduplicator
by Myitian
Function Command Deduplicator removes duplicate command objects from mcfunction files, which reduces memory use when loading very large data packs.
What it does
Data packs with very large numbers of mcfunction files can use a lot of memory at load time, because many functions repeat the same command objects. This mod strips those duplicate objects so the loaded commands take less space in memory. Its scope is the loading of function files, so gameplay behavior is left as it was. Server-side only, so players join without installing anything, and only the server needs the mod. Files are published for Fabric, Forge and NeoForge, covering 1.20.5 – 1.21.8 across 11 release versions, under the MIT License as open source code.
Key features
Duplicate command removal
Repeated command objects inside mcfunction files are merged so each unique object is held once in memory.
Large data pack loading
The reduction targets packs with extremely large function sets, where memory use during loading is the main concern.
Snapshot coverage
Builds are also published for snapshot versions of the game, with the 0.1-beta release for 1.21.8 as the latest file.
Compatibility
Latest build for each game version and loader.
1.21.x9 of 9 versions with builds
1.20.x2 of 2 versions with builds
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
How it compares
MemGuard is a client and server mod for Fabric, Forge and NeoForge covering 1.20 – 1.21.11, released as All rights reserved and not open source. Redirected is also client and server and open source under the GNU Lesser General Public License v3.0 only, for 1.20 – 1.21.1.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Function Command Deduplicator | Fabric, Forge and NeoForge | 1.20.5 – 1.21.8 | Server-side only | 2025-08-23 |
| MemGuard | Fabric, Forge and NeoForge | 1.20 – 1.21.11 | Client and server | 2026-06-03 |
| Redirected | Fabric, Forge and NeoForge | 1.20 – 1.21.1 | Client and server | 2025-02-02 |
Questions
Does the server need this mod, or do players?
In the catalog
Function Command Deduplicator is one of 3,545 Optimization mods on ModsFinder, and one of 2,575 Optimization mods for Fabric. 17,695 mods support Minecraft 1.21.8.
More from Myitian
Similar mods
What the author says
Removed duplicate command objects in mcfunctions to reduce memory usage when loading extremely large data packs.
Official listing
- Modrinth page
- modrinth.com/mod/function-command-deduplicator
- Owner
- Myitian
- Published
- 2025-08-23
- Updated on Modrinth
- 2025-08-23
- Facts verified
- 2026-10-15
