Affects Version/s: 1.17, 1.17.1
Fix Version/s: None
This partially duplicates
MC-208735, I was told to create a new issue for it since that was marked as fixed in 21w20a.
- Build an enclosed water pool that Axolotls cannot reach, similar to this: (glass is chosen for visibility, it works with any block)
- Spawn Axolotls on top of or next to the enclosed water
- The Axolotls will move back and forth, trying to reach the water to hydrate themselves, but unable to. This goes on for minutes, until they dry out and die.
- This happens regardless of whether there are other water sources nearby that the axolotls can reach, as is the case in the screenshot I included. The pond is clearly close enough for the axolotls to reach, but since it's farther away the axolotls will ignore it in favor of one they cannot actually get to. If the water is removed or replaced with other blocks, the axolotls will then pathfind to the pond they can actually get into.
Strangely, axolotls won't do this when it's raining, they will correctly go to the pond in the image above.
Rarely, I have seen axolotls leave water on their own and try to pathfind to unreachable water like described, but I wasn't able to find a way to reproduce it. The easiest way to reproduce is to place them next to the water pool yourself.