Details
-
Bug
-
Resolution: Unresolved
-
None
-
1.19.63, 1.19.81 Hotfix, 1.19.83 Hotfix, 1.20.0, 1.20.1 Hotfix, 1.20.15 Hotfix, 1.20.30
-
None
-
Confirmed
-
Multiple
-
986961
Description
I found a bug that is ruining the last few stages of a map I'm working on.
Once mobs and players start doing lots of damage against someone with a lower damage multiplier, no knockback is taken. Invulnerability frames do not appear either, as someone doing high enough damage can kill the player in moments.
Steps to reproduce:
- Add the damage sensor component into the player.json with a tiny damage multiplier, something along the lines of this:
"minecraft:damage_sensor": { "triggers": { "cause": "all", "damage_multiplier": 0.01 } }
- Open a test world and spawn a hostile mob (or invite another player to join), we'll refer to them as Attacker
- Use the effect command to grant Attacker a notably high strength level (something like strength 5 should be good enough, although I did this with an enderman, so it may need to be higher for weaker mobs)
- Go into survival mode and allow yourself to be hit by Attacker
Expected Results:
You should take a damage tick knockback, regardless if the attack ultimately hurts you or not.
If Attacker is a player, damage immunity frames should also prevent Attacker from rapidly hurting the opponent.
Results shown:
There is no knockback taken. Apparently at some specific level, proper damage application knockback stops being accounted for.
It's real unfortunate to be going through it just when I was wrapping things up, so although this bug may not affect most people's gameplay, I hope this is resolved as soon as possible.
Update 1: I have created a new world specifically to show off the bug in great detail (in the attachment below). This world has a behavior pack where the player.json has the damage sensor modified with the damage multiplier. In the case that the bug must be recreated from scratch, however, I have already explained here how to recreate the issue.
Update 2: This also affects the breaking of armor. Going based off of Golden Helmet's comment as of the 12th of March, 2023, receiving fatal damage being calced beforehand also prevents the durability breaking of armor.
Attachments
Issue Links
- is duplicated by
-
MCPE-168130 Mobs with "minecraft:damage_sensor" can't be attack properly.
- Resolved
- relates to
-
MCPE-160290 Command /damage override type not working correctly
- Open
-
MCPE-46301 When dealing a killing blow to other players using Knockback, they do not actually get knocked back
- Reopened
-
MCPE-108988 Entity component: damage_sensor with has_damage/fatal will fire events immediately on damage from blocks
- Reopened
-
MCPE-66473 "fatal" damage filter false positives when entity has armor
- Resolved