跳到正文

Alex’s Mobs and Caves Optimization

作者:anderlyer

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 支持哪些 Minecraft 版本?

Alex’s Mobs and Caves Optimization 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Alex’s Mobs and Caves Optimization 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

anderlyer 的其他作品

查看全部 →