Compatibility
Minecraft: Java Edition
1.21.9โ1.21.11
1.21.4
1.21โ1.21.1
1.20.1โ1.20.4
1.19.2
1.18.2
Platforms
Supported environments
Links
Creators
Details
Licensed MIT
Published 2 years ago
Achievements Optimizer is a lightweight performance mod that optimizes how item-based achievements and advancements are processed โ reducing unnecessary inventory scans and improving overall tick efficiency.
It doesnโt change any gameplay mechanics or logic โ only makes achievement checks faster and cleaner under the hood.
โ๏ธ** Key Optimizations**
- Early tick skipping โ heavy slot calculations (empty/occupied/full) are skipped early, preventing extra work per event.
- Instant empty stack discard โ with ignoreEmptyStacks enabled, empty stacks are removed immediately without scanning the entire inventory.
- Fast multi-item matching โ single-pass inventory check using boolean[] flags with early exit. No allocations, noticeably faster on large inventories or long condition lists.
- Early slot filtering โ slots.matches(full, empty, occupied) is evaluated first, avoiding deeper checks when slots donโt match.
- Preserved fast path for single targets โ when items.size() == 1, the comparison is done directly on the changed slot without a full inventory pass.
๐ Result
Fewer redundant checks, less memory churn, and faster responses to inventory events. Particularly beneficial for servers or modpacks with many players and complex advancement triggers.
**From version 2.0.0 required Forge Config API Port (only for fabric version). ** Feel free to write about all problems and suggestions on my github! Good luck!


