Most mobs get stuck on some incomplete blocks at the entrance to the water
Summary:
Mobs that can search a water such as axolotls, frogs, turtles are often stuck on the edge of incomplete blocks (mud, soul sand, dirt path, farmland) placed nearby and at the same level with water.
Steps to reproduce:
- Make a pool (2+ blocks deep).
- Replace the edges of the pool with the above incomplete blocks.
- Spawn a mob nearby (frog, axolotl, turtle).
- Follow the behavior of the mob when he goes to the pool.
Observed results:
Mob went to the edge of the pool and stopped.
Expected results:
The mob should enter the water when it goes to the pool.
Created Issue:
Most mobs get stuck on some incomplete blocks at the entrance to the water
Summary:
Mobs that can search a water such as axolotls, frogs, turtles are often stuck on the edge of incomplete blocks (mud, soul sand, dirt path, farmland) placed nearby and at the same level with water.Steps to reproduce:
- Make a pool.
- Replace the edges of the pool with the above incomplete blocks.
- Spawn a mob nearby (frog, axolotl, turtle).
- Follow the behavior of the mob when he goes to the pool.
Observed results:
Mob went to the edge of the pool and stopped.Expected results:
The mob should enter the water when it goes to the pool.
Summary:
Mobs that can search a water such as axolotls, frogs, turtles are often stuck on the edge of incomplete blocks (mud, soul sand, dirt path, farmland) placed nearby and at the same level with water.Steps to reproduce:
- Make a pool (2+ blocks deep).
- Replace the edges of the pool with the above incomplete blocks.
- Spawn a mob nearby (frog, axolotl, turtle).
- Follow the behavior of the mob when he goes to the pool.
Observed results:
Mob went to the edge of the pool and stopped.Expected results:
The mob should enter the water when it goes to the pool.
Note: this bug also affects any custom mobs that use behavior.move_to_water
Steps to reproduce
- Load move_to_water.mcworld
. It contains a long canal along which are test areas for this bug (grassy end) and MCPE-165109 (muddy end). The lever on the command block at the middle of the canal toggles the canal between 1 block deep and 2 blocks deep. The row of command blocks at each test area will spawn a dolphin, an axolotl, a baby turtle, and a pregnant frog. (Note: the frog spawns with the components for pregnant behavior, but not the is_pregnant bit, so it will not create frogspawn.) - Set the canal to 1 block deep.
- Press the button on the command blocks at the grassy end of the canal.
- After a minute or so, toggle the canal to 2 blocks deep.
- Press the button on the command blocks at the grassy end of the canal, again.
Expected result
After both steps (3) and (5) the mobs all start moving toward the canal within a few seconds.
Observed result
After step (3) the turtle freezes and the other mobs move randomly. After step (5) the axolotl, baby turtle, and pregnant frog move toward the water. The dolphin has an overriding issue reported at MCPE-181125 and can be ignored until that is fixed.
Steps to reproduce
- Create a pool of water several blocks wide. Make the pool at least 2 water source blocks deep because of MCPE-122278. Use full height blocks (e.g. sand, grass, dirt, or clay) around the edge of the water because of MCPE-165109.
- Spawn several dolphins about 10 blocks away from the pool.
Expected result
Within a few seconds the dolphins start crawling toward the water.
Observed result
The dolphins constantly bounce in random directions. They occasionally bounce in the direction of the water 3-4 times in a row but then move in a random direction again. Some may land in the water by chance while others drift away from the water and dry out and die over time.
Did you account for MCPE-122278 when testing this? (Make sure the water is at least 2 blocks deep.)
Yes. This happens in conditions of 2+ blocks deep.
MCPE-165109.mp4
Does the issue still occur for you as described?
I just tested and they get stuck as often and in the same way on full blocks as well.
The problem is still as described. There are no problems with full blocks. Try to reproduce the problem with dolphins. They always stay on the edge of the water until they die.
Here is a comparison video on full blocks and on mud with axolotls: MCPE-165109-1.mp4
this has been a problem for so long I can confirm
The cause seems to be that when a mob is on block that is not full height its bounding box and/or exact location enters the bounds of the water block while the mob is still supported by the short block. A potential fix would be to condition the goal completion of moving to water on the mob's entire bounding box being inside a water block.