Getting hit while on fire and blocking causes reverse knock back
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
Expected behavior
You just shouldn't take knock back (or in this case, knock forward) when blocking (with some exceptions, like the hoglin), regardless of status effects or if you're on fire.
Observed/Actual behavior
If you use a shield to block and get hit by a zombie which has a weapon of fire aspect, it will cause you to be thrown into the zombie. This also happens with status effects such as poison and wither, if you take damage on the same tick as you're hit by a mob, it'll throw you up and towards the mob. The first example, for some reason doesn't work on vanilla, but does on Spigot and Paper.
Do note, the getting set on fire by a zombie even though you're blocking is probably a bug, but its not the one I'm attempting to report.
I put together a quick video here demonstrating the issue.
Steps/models to reproduce
Get a shield, summon a zombie with a fire aspect weapon. Run either spigot or paper (this specific example doesn't seem to work on vanilla). Block with the shield and get hit by the zombie, the damage from the fire sudden has a boat load of knock back which sends you up and into the zombie.
Plugin and Datapack List
None
None
Paper version
This server is running Paper version git-Paper-237 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: b55ba19)
Other
Also tried with vanilla Minecraft 1.18.2 downloaded 3/10/22
And Spigot; This server is running CraftBukkit version 3453-Spigot-ffcceeae-64db512 (MC 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT)
The video I made demonstrating this issue: https://www.youtube.com/watch?v=JspnG8fyKEU
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the shield-blocking scenario with a fire-aspect zombie, then compare Paper, Spigot, and vanilla Minecraft 1.18.2 using the reported steps. Trace the knockback applied when fire, poison, or wither damage occurs on the same tick as a blocked hit; done means blocking no longer causes knockback in these cases while documented exceptions remain unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100