Closely relates to MC-270532.
The bug
If the player attempts to ride a hostile mob, they will eventually die as a result of continuously being attacked by it. I'd have expected that mobs would be immune to the attacks of their riders and passengers.
How to reproduce
Find a slime larger than the minimum size
/ride @s mount [UUID of slime]
Enter Survival
Expected results
You should ride the slime harmlessly.
Actual results
Rapid death.
Attachments
Comments 9
Can confirm this, @unknown make sure to enter the uuid of the slime and go into survival mode, its gonna work.
I could reproduce it with a slime, I was saying I could not with a husk. I can test the issue further in a little bit
@unknown I think it differs, because slimes attack players when interacting/touching them, and I think this report mainly focuses on slimes so that's all that matters.
@unknown Yeah you did mention that, but I think its best if we focus on slimes as this report mainly focuses on the slimes.
I think this issue may need to be clarified some, because slimes (and other mobs) are a special case. the behavior of repeatedly being attack occurs for mobs which don't have standard attacks, but instead just do damage when the player is near them (the mobs outlined in MC-169167).
Here's a video showcasing how this does not occur for some mobs with melee attacks, but does for the slime:
[media]
I think the underlying issue is that mobs (other than slimes and other mobs) can target their passengers (and thus may or may not do damage depending on their attack type), instead of attacking them.
This seems to be the same general behavior described in MC-131426 MC-191642 MC-169167, at least with the slimes. They can attack the player when they're near to them, rather than having a 'normal' attack like other mobs. I tried to reproduce this with a husk mob, and could not get the same result as the slime. Can you reproduce this with all/most hostile mobs?