Skip to content

Fix mob pathfinding #279#280

Open
KalaMariaHirmo wants to merge 2 commits into
talrey:1.21-neofrom
KalaMariaHirmo:issue#279
Open

Fix mob pathfinding #279#280
KalaMariaHirmo wants to merge 2 commits into
talrey:1.21-neofrom
KalaMariaHirmo:issue#279

Conversation

@KalaMariaHirmo

Copy link
Copy Markdown

fix for #279

@KalaMariaHirmo

Copy link
Copy Markdown
Author

i did what minecraft already does for non solid blocks that cant be walked through like lanterns and stairs

@KalaMariaHirmo

KalaMariaHirmo commented Jul 14, 2026

Copy link
Copy Markdown
Author

isPathfindable false will make the WalkNodeEvaluator.getpathtypefromstate return PathType.Blocked so that mobs wouldnt try to walk through the block.
currently these blocks return pathtype.open or pathtype.water if they're waterlogged

@KalaMariaHirmo KalaMariaHirmo marked this pull request as draft July 14, 2026 13:19
@KalaMariaHirmo KalaMariaHirmo marked this pull request as ready for review July 14, 2026 13:52
@KalaMariaHirmo

Copy link
Copy Markdown
Author

I can't guarantee I fixed the pathfinding for every block thats broken just the ones i know are broken. theres a chance i missed some

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant