When I spawn mobs underwater on a block that is farther than the player, it spawns the mob in the player instead.
Steps to Reproduce:
Go underwater
Aim at a block that is farther than the player
Spawn a mob on that block with a spawn egg
Observed Results:
The mob spawns in the player.
Expected Results:
The mob should spawn on the block the player was aiming at.
Related issues
is duplicated by
relates to
Attachments
Comments

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response
Is this still an issue in the latest version?
If it is, please be sure to include steps to reproduce the problem:
Steps to Reproduce:
1.
2.
3.Observed Results:
(Briefly describe what happens)Expected Results:
(Briefly describe what should happen)
If your ticket does not look like the example given here, then it's likely to be closed as incomplete.
This ticket will automatically reopen when you reply.
Quick Links:
π Issue Guidelines β π¬ Mojang Support β π§ Suggestions β π Minecraft Wiki

The problem is that when you aim at a block through water or lava and use a spawn egg, you will spawn the mob on the water instead of the block that you are aiming through the water. This causes this issue. On java this is not an issue. If you aim at a block through water, you will spawn the mob at that block and if you donβt aim at a block through the water you will spawn the on the water. That is how it should work.
fixed in 1.19.10.20
mentioned in the changelog as: "Fixed interaction priority when using a Bucket on a waterlogged and interactable block, eg. Lever (MCPE-154221)"