mojira.dev
MCPE-190957

avoid_surface parameter in behavior.random_swim does not work

Steps to reproduce

  1. Make a 10x7x10 water chamber open to the sky, with the walls of one side made of glass or barrier blocks for ease of observation.

  2. Spawn a few cod fish and guardians inside.

  3. Watch the mobs swim around for a while through the transparent side of the chamber. You may wish to record them swimming for 5-10 minutes or more and then watch the recording later at a faster speed.

Expected result

Guardians sometimes swim near the surface because their behavior definition has "avoid_surface": false inside of behavior.random_swim

Observed result

Both cod and guardians stay at least 3 full blocks below the surface of the water at all times.

Comments 0

No comments.

GoldenHelmet

(Unassigned)

1387407

Confirmed

Multiple

1.21.62 Hotfix

Retrieved