promotional bannermobile promotional banner

Achievements Optimizer

Improved achievement performance

File Details

AchievementOptimizer-fabric-1.21.1-2.1.0

  • R
  • Aug 17, 2025
  • 16.81 KB
  • 933.5K
  • 1.21.1
  • Fabric

File Name

AchievementOptimizer-fabric-1.21.1-2.1.0.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:achievements-optimizer-912788:6897784"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

  • Skipping ticks is done before the heavy calculation of occupied/empty/full slots — less extra work on each event.
  • With ignoreEmptyStacks enabled, empty stacks are discarded immediately, without causing an inventory scan.
  • Fast matching of many items (one pass through the inventory with boolean[] flags and early exit — without allocations, noticeably faster on large inventories and long lists of conditions).
  • Early filtering by slots (slots.matches(full, empty, occupied) is performed first, excluding further calculations in case of a mismatch.).
  • Preserved fast path for one target (with items.size() == 1, the check is done on changed without a full scan — the behavior is left, but surrounded by earlier cutoffs.).