{"id":17448188,"url":"https://github.com/litetex-oss/mcm-rabbit-pathfinding-fix","last_synced_at":"2025-10-09T16:31:18.626Z","repository":{"id":257962378,"uuid":"867319252","full_name":"litetex-oss/mcm-rabbit-pathfinding-fix","owner":"litetex-oss","description":"Minecraft mod that fixes rabbit pathfinding efficiently","archived":false,"fork":false,"pushed_at":"2025-09-30T20:21:06.000Z","size":1897,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"dev","last_synced_at":"2025-09-30T21:13:47.187Z","etag":null,"topics":["fabric","fix","minecraft","mod","pathfinding","rabbit"],"latest_commit_sha":null,"homepage":"https://modrinth.com/mod/rabbit-pathfinding-fix","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litetex-oss.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-03T20:50:59.000Z","updated_at":"2025-09-30T20:21:09.000Z","dependencies_parsed_at":"2024-10-27T22:17:38.642Z","dependency_job_id":"5cf47d68-4079-4da6-bb1c-d79839b8ed45","html_url":"https://github.com/litetex-oss/mcm-rabbit-pathfinding-fix","commit_stats":{"total_commits":69,"total_committers":3,"mean_commits":23.0,"dds":0.2028985507246377,"last_synced_commit":"1fb5779accda24302c0a31b66d8660c4106be85a"},"previous_names":["litetex-oss/mcm-rabbit-pathfinding-fix"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/litetex-oss/mcm-rabbit-pathfinding-fix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litetex-oss%2Fmcm-rabbit-pathfinding-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litetex-oss%2Fmcm-rabbit-pathfinding-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litetex-oss%2Fmcm-rabbit-pathfinding-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litetex-oss%2Fmcm-rabbit-pathfinding-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litetex-oss","download_url":"https://codeload.github.com/litetex-oss/mcm-rabbit-pathfinding-fix/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litetex-oss%2Fmcm-rabbit-pathfinding-fix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001766,"owners_count":26083171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fabric","fix","minecraft","mod","pathfinding","rabbit"],"created_at":"2024-10-17T20:06:22.457Z","updated_at":"2025-10-09T16:31:18.621Z","avatar_url":"https://github.com/litetex-oss.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- modrinth_exclude.start --\u003e\n\n[![Version](https://img.shields.io/modrinth/v/MCMPNRD8)](https://modrinth.com/mod/rabbit-pathfinding-fix)\n[![Build](https://img.shields.io/github/actions/workflow/status/litetex-oss/mcm-rabbit-pathfinding-fix/check-build.yml?branch=dev)](https://github.com/litetex-oss/mcm-rabbit-pathfinding-fix/actions/workflows/check-build.yml?query=branch%3Adev)\n\n# Rabbit Pathfinding Fixed\n\n\u003c!-- modrinth_exclude.end --\u003e\n\nFixes rabbit pathfinding efficiently.\n\nAs of 1.21.1 there are multiple problems with rabbit pathfinding:\n\n### Basic pathfinding\n1. The calculation of the jump height/velocity is incorrect and poorly implemented.\u003cbr/\u003eThis results in too small jumps for climbing over a block.\n2. Rabbits \"stall\" (no horizontal movement) during jumps - due to this they just jump upwards in the same place when trying to climb a block.\u003cbr/\u003eThis behavior is caused by ``RabbitMoveControl`` which only sets the (horizontal) speed correctly during movement but not while jumping.\n3. Rabbits are stuck / try to wander around forever.\n   * The root cause is that ``EntityNavigation`` sets its timeouts based on movement speed.\u003cbr/\u003eIf the movement speed is 0 (this is the case when a rabbit/mob is \"stuck\"), the timeout is also 0... and if the timeout is 0 it's ignored and therefore it's executed forever (or until interrupted by something external like another goal).\n   * Rabbits only have a single goal when idle: ``WanderAround(Far)``. Most other entities also use ``LookAroundGoal``.\u003cbr/\u003e Thus the above mentioned infinite navigation is never stopped in favor of executing another goal like in most other mobs.\n   * ``RabbitMoveControl#tick`` constantly updates the rabbits speed (``RabbitEntity#setSpeed``).\u003cbr/\u003e While doing this it also indirectly executes ``moveControl#moveTo`` thus the rabbit always tries to reach it's last target even when it shouldn't do that.\n\n\u003c!-- modrinth_exclude.start --\u003e\n\u003e [!NOTE]\u003c!-- modrinth_exclude.end --\u003e\n\u003e As of ``1.21.4/24w46a`` [MC-150224](https://bugs.mojang.com/browse/MC-150224) was fixed, correcting the jump height (1) and fixing the stall (2).\u003cbr/\u003e\n\u003e However all other parts - including optimizations and sanity checks in above mentioned fixes - are still missing.\n\n### Eating carrot crops\n1. Rabbits can't reach the crops and always stop one block short of them.\u003cbr/\u003eThis is due to selecting the incorrect distance from the crop block (it's ``1`` but should be ``0``).\n2. Rabbits eat the crop instantly even while still jumping and being in the air.\n3. The goal/behavior is immediately aborted (after a few ticks - when a target crop block was selected) due to incorrect implementation of ``shouldContinue`` and ``isTargetPos`` methods.\n\n\nDetailed [video comparisons](https://litetex-oss.github.io/mcm-rabbit-pathfinding-fix/assets/comparison) are also available.\n\n\u003c!-- modrinth_exclude.start --\u003e\n\n## Installation\n[Installation guide for the latest release](https://github.com/litetex-oss/mcm-rabbit-pathfinding-fix/releases/latest#Installation)\n\n### Usage in other mods\n\nAdd the following to ``build.gradle``:\n```groovy\ndependencies {\n    modImplementation 'net.litetex.mcm:rabbit-pathfinding-fix:\u003cversion\u003e'\n    // Further documentation: https://wiki.fabricmc.net/documentation:fabric_loom\n}\n```\n\n\u003e [!NOTE]\n\u003e The contents are hosted on [Maven Central](https://repo.maven.apache.org/maven2/net/litetex/mcm/). You shouldn't have to change anything as this is the default maven repo.\u003cbr/\u003e\n\u003e If this somehow shouldn't work you can also try [Modrinth Maven](https://support.modrinth.com/en/articles/8801191-modrinth-maven).\n\n## Contributing\nSee the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.\n\n\u003c!-- modrinth_exclude.end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitetex-oss%2Fmcm-rabbit-pathfinding-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitetex-oss%2Fmcm-rabbit-pathfinding-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitetex-oss%2Fmcm-rabbit-pathfinding-fix/lists"}