A* Pathfinding
by CJDev
A* Pathfinding gives mobs and entities a shared A* path search, exposed through a function that finds a route to a destination for the mod's entities.
What it does
The mod provides entities that follow A* routes and a function that finds a path to a given destination. The server must run it, while players may add it for their own client but are not required to. Files are published for Fabric, Forge, NeoForge and Quilt, covering 1.21 – 26.3 (17 release versions), with snapshot builds available, under the GNU General Public License v3.0 only, which makes it open source.
Key features
Pathfinder entities
Entities that move along computed A* routes through the terrain around them.
Destination pathfinding
A function that searches for a path from an entity's position to a chosen destination.
Command chain limit
Path search terrain can be restricted to a maximum of 10 blocks; setting maxCommandChainLength high enough is recommended, or temporary markers remain once the limit is reached.
Gallery
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x12 of 12 versions with builds
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
Required by 1 mod
Questions
Does A* Pathfinding need to be on the client?
Which game versions have files?
In the catalog
A* Pathfinding is one of 3,545 Optimization mods on ModsFinder, and one of 2,575 Optimization mods for Fabric. 8,071 mods support Minecraft 26.3.
More from CJDev
Similar mods
What the author says
I recommend setting the maxCommandChainLength gamerule high enough for your terrain, or restrict the path to a maximum of ~10 blocks — otherwise, temporary markers may stay once the limit is reached You may add a function to the #astar:eval_node tag to modify costs — return results in only impassable being effective\…
Official listing
- Modrinth page
- modrinth.com/mod/a-star-pathfinding
- Owner
- CJDev
- Published
- 2025-09-10
- Updated on Modrinth
- 2026-09-01
- Facts verified
- 2026-10-15
