Slimes (and Magma Cubes) can damage the player during their death animation where other mobs like a Zombie can't.
I was able to replicate this issue in my creative world too which is where I got the attached clips from.
To create the issue:
Spawn in a medium or large Slime (I tested small Magma Cubes too)
Kill the mob
As it's dying, walk over it and you should take some damage
The proper fix for this bug should be to prevent dead slimes and magma cubes from damaging the player. (As a player, being damaged by something you defeated feels wrong.)
Thank you for your report!
We're tracking this issue in MCPE-166394, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.