mojira.dev
MCPE-37229

Dolphins don't consistently jump out to breathe, so they always die after a few minutes

The bug!

Dolphins cannot jump out naturally if they in a deeper than one water sourceblock.

Sometimes they try to jump but they usually fail. In 1.4.0 when they added to the game the dolphins jumped out. In the latest version/beta they only jump out when they follow the players boat or the player is swimming on the surface of water.

Linked issues

MCPE-32972 Dolphins keep killing themselves Resolved MCPE-33358 Dolphins Drown Resolved MCPE-35173 the dolphins die inside the water for not taking air Resolved MCPE-38323 Dolphins can't jump AT ALL in MCPE Resolved MCPE-48056 Dolphin bug Resolved

Attachments

Comments 25

Please do not mark unreleased versions as affected.
You don't have access to them yet.

my dolphins are still dying in fact, sometimes they cannot crawl and get into the water and they die this error had i been reported long before this user and had generated another report because they required it but they marked it as duplicate

[media]

I believe some dolphins are able to jump out of water, and some just aren't able to, despite having access to air.

Also in 1.16.0.63 they donot fix that

15 more comments

Still happens in the most recent version 1.19.81

Testing in 1.20.12 Hotfix, dolphins do jump out of water to breath every 4 minutes most of the time. It does not matter if I spawn them on land or in water, or pull them out of the water for a little while after spawning them in water. I recorded one coming up to breath every 4 minutes 3 times in a row, even. However, when I afk at a dolphin pool for longer periods of time and come back, they are always gone.

New duplicate report MCPE-180897 includes a video clip of a dolphin dying because it does not reach the surface to breath: https://bugs.mojang.com/secure/attachment/569423/video_20240424_190709.mp4

In this video the dolphin tries to breach the surface but stops a block or two below where it should and swims in circles, as if it cannot find the surface. This seems to match the behavior partially captured in the video attached to this ticket.

Update 3/6/25: the real cause of this issue is MCPE-190996, contrary to my earlier analysis below, which I have crossed out.

Update: after extensive testing based on the above lead, I can confirm that this bug has the same cause as MCPE-45645, MCPE-131091, and MCPE-162241: when mobs swim, the position that they target for movement is offset in the -Y direction from the path that they have pre-generated. In other words, after they find a path through water they try to move a block below that path. The exact offset is difficulty to determine; I think it is between 0.25 and 1.25 blocks.

This offset causes dolphins to stop below the surface of the water when they come up to breath (using behavior.random_breach). I believe they only successfully breach the water surface if they happen to run the behavior when they are already very close to the surface (within about 2 blocks).

[media]

shows dolphins repeatedly swimming up toward the surface and stopping.

[media]

contains the dolphin test chamber and several others that can be used to investigate this bug.

Can’t believe how long it takes to resolve an issue like this,,,, still happening in 1.21.1

this happening in 1.21.90

Nagy Richárd

(Unassigned)

152709

Confirmed

Multiple

Windows 10.0.17134.1

Incorrect, dolphin, mob-behavior

1.19.60.24 Preview, 1.13.0.1 Beta, 1.12.0.14 Beta, 1.17.20.21 Beta, 1.17.20.20 Beta, ..., 1.21.2 Hotfix, 1.21.31 Hotfix, 1.21.41 Hotfix, 1.21.51 Hotfix, 1.21.80

Retrieved