mojira.dev
MC-98142

Mobs don't take knockback if hit after taking lesser damage which doesn't deal knockback

I was playing in a normal Minecraft world, I hit a villager, after burning him with a lighter.

*What I expected to happen was:
That the villager took knockback.

What actually happened was...:
When I hit him, he just stayed there, then I put some water on him, hit him, and he took knockback. For some kind of reason, if the entify is burning and you hit it, it won't take knockback, well, at least on villagers.

Steps to Reproduce:
1. Burn a villager or some mob
2. Hit it and check it doesn't takes knockback
3. Put some water on him
4. Hit him again, notice it does take knockback

 

Additional Info
This is not exclusive to burning, but any form of damage which does not deal knockback, including:

  • Burning

  • Sweet Berries

  • Cactus

  • Magma

  • Lava

  • Falling on Stalagmites

  • Fall Damage

  • /damage command

  • Drowning

  • Freezing in Powder Snow

  • Poison damage

  • Wither damage

  • Damage from being in fire or on a campfire

  • Getting struck by Lightning

  • Entity cramming

  • Suffocation

  • Vexes dying by existing for too long / Player Starvation

Linked issues

Attachments

Comments 8

Mobs have a cooldown period between taking damage. You can't hit mobs if they just took fire damage.

The explaination for this is resolution actually untrue. If you are able to deal more damage than the original damage (say a mob burning in sunlight and you hit it with a netherite sword), the damage will pass through the "i-frames", the i-frames only apply if the damage dealt after the fact is less than or equal to that of the original damage, thus there is no reason why the mob shouldn't get knocked back.

This isn't exclusive to fire but also affects any type of damage that doesn't cause knockback, such as poison as well.

Does this issue still occur in 1.20.2?

Yeah, this happens in 1.20.2

In 23w44a

I also found this unmarked duplicate MC-190564

This affects the following damage types as well.

  • Burning

  • Sweet Berries

  • Cactus

  • Magma

  • Lava

  • Falling on Stalagmites

  • Fall Damage

  • /damage command

  • Drowning

  • Freezing in Powder Snow

  • Poison damage

  • Wither damage

  • Damage from being in fire or on a campfire

  • Getting struck by Lightning

  • Entity cramming

  • Suffocation

  • Vexes dying by existing for too long / Player Starvation

Further, seeing as the owner has been inactive since 2016, may I request ownership of this issue?

Sebastián Alvarado

Brevort

(Unassigned)

Confirmed

Combat

Minecraft 1.8.9, 1.20.1, 1.20.2, 23w44a, 1.20.4, 23w51b, 24w04a, 24w05b, 1.21, 1.21.3

Retrieved