Fixes rabbit pathfinding efficiently.
As of 1.21.1 there are multiple problems with rabbit pathfinding:
RabbitMoveControl which only sets the (horizontal) speed correctly during movement but not while jumping.EntityNavigation sets its timeouts based on movement speed.WanderAround(Far). Most other entities also use LookAroundGoal.RabbitMoveControl#tick constantly updates the rabbits speed (RabbitEntity#setSpeed).moveControl#moveTo thus the rabbit always tries to reach it’s last target even when it shouldn’t do that.[!NOTE] As of
1.21.4/24w46aMC-150224 was fixed, correcting the jump height (1) and fixing the stall (2).
However all other parts - including optimizations and sanity checks in above mentioned fixes - are still missing.
1 but should be 0).shouldContinue and isTargetPos methods.Detailed video comparisons are also available.
Installation guide for the latest release
Add the following to build.gradle:
dependencies {
modImplementation 'net.litetex.mcm:rabbit-pathfinding-fix:<version>'
// Further documentation: https://wiki.fabricmc.net/documentation:fabric_loom
}
[!NOTE] The contents are hosted on Maven Central. You shouldn’t have to change anything as this is the default maven repo.
If this somehow shouldn’t work you can also try Modrinth Maven.
See the contributing guide for detailed instructions on how to get started with our project.