mojira.dev
MC-269231

Frogs push players away when eating them instead of pulling them towards.

When frogs eat a mob, the mob is drawn towards the frog. However, when a frog eats a player, the player experiences knockback and is pushed away. The expected behavior would be for the player to be pulled towards the frog, just like how mobs are affected. To verify this, the attached datapack enables frogs to eat players as well. Additionally, the knockback is influenced by the

minecraft:generic.attack_knockback

attribute, as mentioned in MC-269226.

Attachments

Comments

[MOD] Greymagic27

Please attach steps to reproduce this bug, as well as observed and expected results

migrated

To reproduce:
1. Install the provided datapack.
2. Summon a frog.
3. Switch to survival mode and let the frog attack you (consider giving yourself resistance to prolong survival).
The observed result is being pushed away from the frog and experiencing normal knockback. The expected result, as described, is to be pulled towards the frog just like mobs.

[Mod] Jingy

The frog seems to be attacking the player instead of attempting to eat them (and thus knocking them back), which would seem like expected behavior.

migrated

So, what distinguishes eating from attacking? In both scenarios, whether it's mobs or players, the frog extends its tongue and inflicts damage on the entity. The key disparity lies in players experiencing knockback, whereas mobs are drawn towards the frog, precisely what I'm reporting here. I think attacking and eating are the same thing here.

[Mod] Jingy

My comment was intended to point out that frogs (usually) entirely consume entities that they are capable of eating, meaning they do not inflict damage, but instead draw the entity towards themselves and 'delete' the entity from the world. Since the player cannot be consumed, instead damage is inflicted on the player as if the frog was 'attacking' them rather than of eating them. To me, this seems like expected behavior.

With that being said, after installing the datapack I can confirm the described behavior.

migrated

— meaning they do not inflict damage
Actually, that's incorrect. Frogs inflict 10 points of damage to entities they eat, whether they're mobs or players. If this damage results in the entity's demise, the death animation doesn't play. However, the death sound still plays, and death messages are still dispatched.

[media]

[Mod] Jingy

I see, thank you for clarifying.

[Mojang] Triage Team

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

migrated

(Unassigned)

Community Consensus

(Unassigned)

1.20.4, 24w10a, 24w11a

Retrieved