Alex's Mobs: Tweaks [Performance Optimization]

Performance addon for Alex’s Mobs that cuts entity tick cost, reduces nasty lag spikes, replaces wasteful hot paths and routes safe background work through Quantified API. Made by love at BlackRift Studios ;]

undefined

《▓ Alex’s Mobs: Tweaks ▓》

Powered by Quantified API

《▒ What It Does ▒》

Alex’s Mobs: Tweaks, or AMT, is a lightweight performance addon that fixes several expensive Alex’s Mobs and Citadel hot paths.

Some systems inside Alex’s Mobs do a LOT more work than needed. One example literally sorted an entire candidate list just to find the nearest valid mob xd.

AMT replaces those paths with cheaper exact alternatives and moves compatible background work through Quantified API’s controlled worker lanes.

The result is lower MSPT, fewer nasty tick spikes and more room for your server to breathe, while keeping the intended mob behaviour and results intact.

Same mobs, same behaviour, substantially less random CPU bullying :DDD

《▒ Real Server Performance ▒》

Paired Forge server test using the same persisted world, the same 372 entities and the same 60 second Spark window:

MetricNormal Alex’s MobsWith AMTGain
Entities372372Same workload
Mean MSPT10.5898.07723.72% lower
Median MSPT9.9137.72922.03% lower
P95 MSPT17.76612.80727.91% lower
Worst tick67.166 ms40.491 ms39.72% lower
TPS under load20.000119.9996Maintained 20 TPS

Both runs alr maintained 20 TPS, so the actual win is lower tick cost, much better p95 stability and a FAR smaller worst tick. Exact gains will ofc depend on your world, entity count and modpack.

《▒ Puffish Hot Path ▒》

One of the main fixes replaces Puffish’s full candidate sorting with one stable linear nearest candidate pass.

Candidate CountMeasured Speedup
64 candidates44.71x
256 candidates34.81x
1,024 candidates147.25x
4,096 candidates80.54x

32,768 randomized correctness cases passed with the same nearest candidate and stable tie behaviour.

《▒ Quantified API Integration ▒》

Compatible Citadel path search work is routed through Quantified API’s bounded background lane instead of being thrown into a generic executor and left there to fight everything else.

Quantified API handles scheduling, task ownership and diagnostics while Minecraft sensitive work stays on the correct thread.

《▒ Compatibility ▒》

Requires: Alex’s Mobs, Citadel and Quantified API V2.

Built for: Minecraft 1.20.1 Forge.

《▒ Licensing and Support ▒》

Licensed under BRSSLA V1.5, which is free for personal and non commercial use.

Found a bug, got an idea, or somehow found another Alex’s Mobs method sorting half the planet for one result? Feel free to report it :]

Developed by Admany, Maintained by ChaosCraft_HD - BlackRift Studios 2026

The Alex's Mobs: Tweaks [Performance Optimization] Team

HighCrafter tier frameprofile avatar
  • 122
    Followers
  • 8
    Projects
  • 4.6M
    Downloads

Founder of BlackRift Studios. Looking out for some Collaborations :D

More from ChaosCraft_HDView all