khanshoaib3 / minecraft-access

A mod for minecraft java (fabric/neoforge) that adds accessibility feature
GNU General Public License v3.0
45 stars 10 forks source link

Path Finding: Make use of Villager's path-finding algorithm for players #292

Open boholder opened 3 months ago

boholder commented 3 months ago

Villagers can't climb ladder, which might be a problem.

the default pathfinding algorithms (that are thousands of lines of code in the server source) are faster, abstracted, and will catch far more edge cases than a simple <100 line brute-forcing, block-iterating algorithm. Not to put you off, but this really didn't need any rewriting. https://www.spigotmc.org/threads/a-pathfinding-algorithm-looking-for-feedback.59735/#post-658564

boholder commented 1 month ago

There is an existing pathfinding mod might be useful https://github.com/cabaletta/baritone/blob/f6045b7cb480c4b9868a1e9eaf5662da3a5360a5/FEATURES.md