mobs-can-crouch-and-crawl-1.0.0+1.21.11.jar
Curse Maven Snippet
What's new
Fabric mod for Minecraft 1.21.11.
A player hiding behind a low gap is no longer safe: zombies chasing a target crouch to get under 1.5-block gaps and crawl through 1-block gaps, using the player's own crouching and crawling poses.
Behaviour
- Affected mobs: zombie, husk, zombie villager (entity type tag
mobscrouchandcrawl:can_crouch_and_crawl). Baby zombies are already small enough for 1-block gaps and keep the vanilla behaviour. - Crouching: hitbox height x0.75 (1.95 -> 1.4625), fits under 1.5 blocks.
- Crawling: hitbox height x0.5 (1.95 -> 0.975), fits under 1 block.
- Only a mob chasing a target (player, villager, iron golem...) plans paths through low gaps. Wandering mobs keep the vanilla pathfinding. A mob already crouching or crawling also plans low paths, to find its way out.
- Low paths cost more than standing ones, in proportion to the slower speed, so a mob only goes low when it is worth it.
- The mob gets down just before a low gap and stands up again once there is room.
- Crouching and crawling mobs move at 30% speed by default, like a sneaking or crawling player.
- Crawling mobs can still attack.
This mod has no additional files