mojira.dev
MC-259888

Frogs do not lay frogspawn near non-full blocks like mud or dirt path

Frogs do not lay frogspawn if there are only mud blocks near the eligible water blocks.

What I expected to happen was...:
Frogs lay frogspawn on water blocks that are adjacent to mud blocks.

What actually happened was...:
Frogs do not lay frogspawn on the water blocks.

Steps to Reproduce:
1. Create a lake that is surrounded by mud blocks. Please note that the surrounding mud blocks should be at least two blocks thick (e.g. a 3x3 lake in the middle of 5x5 mud blocks).
2. Spawn two frogs on the mud blocks.
3. Use slime balls to the frogs to make them enter love mode.
4. Observe the unexpected behavior.

Linked issues

Attachments

Comments 3

Can confirm in 1.19.4-rc3, also other similar block such as farmland, dirt path, soul sand, etc. work too.

Due to the code analysis of MC-266430, I found that using $$3.getOnPos() instead of $$3.blockPosition().below() in TryLaySpawnOnWaterNearLand fixes this issue as well.

tadpole443

(Unassigned)

Confirmed

Gameplay

Important

Mob behaviour

1.19.3, 1.20.1, 23w35a, 23w45a, 1.21.3

Retrieved