Made because players love putting Alex's Mobs and Alex's Caves together in modpacks. Don't worry though — it still works if only one of them is installed, and it won't crash or error if neither is present.
| Area | Vanilla behaviour | Change | Effect |
|---|---|---|---|
| Network broadcasts (3 sites across Citadel, Alex's Mobs, Alex's Caves) |
Property sync, visual-effect and multipart-hit packets use PacketDistributor.ALL, reaching every player on the server, including players in other dimensions who cannot see the entity |
Switched to TRACKING_ENTITY, so only players tracking that entity receive the packet |
Dead packets stop reaching far-away and cross-dimension players; savings scale with player count |
| AI goal scans (5 goals: flee-adult, follow-parent, ride-parent, elephant caravan, gorilla caravan) |
The goal selector polls canUse() every tick, and each poll performs a nearby-entity query |
The query only runs every 4th tick | Scan cost cut to 1/4; behaviour unchanged, only the evaluation cadence |
| Per-tick entity scans (7: anteater, candicorn, gust, Tasmanian devil, terrapin, skreecher, underminer) |
tick() runs a getEntitiesOfClass, ceiling scan or nearest-player query every tick |
Runs every 2, 4 or 8 ticks depending on the entity | Scan cost cut to 1/2, 1/4 and 1/8 respectively |
| Luxtructosaurus roar scatter | A full-range entity scan every tick for the entire duration of the roar | Refreshed every 5 ticks; the cached result is reused in between | Scan cost cut to 1/5, and the caller still receives real results rather than an empty list |
| Cockroach spawn density | Only the environment is checked (underground, y<64); the existing population is never considered, so bases fill up with cockroaches | After the environment check passes, cockroaches within 32 blocks are counted and spawning is refused at 6 or more | Bases are no longer swarmed; spawner-produced cockroaches are unaffected |
Alex's unique approach to design means that many general mob AI optimization mods simply don't take effect on his mods.

