Mobs (must be human-shaped mobs like Zombie, Skeleton, Zombie Piglin, Husk, ect) with a Spear (any kind of spear) can still deal damage to players when they’re dying!
How to trigger:
Summon a husk (husk or zombie piglin recommended, because zombie will burn during daytime) in Creative Mode
Use this command to give it a spear: /replaceitem entity @e[type=husk] slot.weapon.mainhand 1 diamond_spear
Change your game mode into Survival, and try to kill the husk
Sometimes, when the monster dies, it still causes damage to you with the spear. As shown in the video.
To better trigger this, please go near to the dying mob!
there are several typos: ect-->etc; the a → delete “a”
Also, to better trigger this, you can go near to the dying mob