promotional bannermobile promotional banner

Alex's Mobs and Caves Optimization

Optimizes both Alex's Caves and Alex's Mobs; works even if only one of them is installed.

Optimizes both Alex's Caves and Alex's Mobs; works even if only one of them is installed.

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 , reaching every player on the server, including players in other dimensions who cannot see the entityPacketDistributor.ALL Switched to , so only players tracking that entity receive the packetTRACKING_ENTITY 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 every tick, and each poll performs a nearby-entity querycanUse() 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 , ceiling scan or nearest-player query every tickgetEntitiesOfClass 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
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 , reaching every player on the server, including players in other dimensions who cannot see the entityPacketDistributor.ALL Switched to , so only players tracking that entity receive the packetTRACKING_ENTITY 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 every tick, and each poll performs a nearby-entity querycanUse() 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 , ceiling scan or nearest-player query every tickgetEntitiesOfClass 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 unaffecte

Alex's unique approach to design means that many general mob AI optimization mods simply don't take effect on his mods. 

Alex's Mobs and Caves Optimization Team

profile avatar
  • 1
    Followers
  • 10
    Projects
  • 2.0K
    Downloads

More from anderlyerView all