The player is able to damage their own mount with Riptide (confirmed with nautili and horses; does not happen with boats). It would be expected that either the player cannot use Riptide while in a vehicle or that they could not damage their mount by doing so.
To reproduce
/weather rain/summon minecraft:horse ~ ~ ~ {Tame:1b,equipment:{saddle:{id:"saddle"}}}/give @s minecraft:trident[minecraft:enchantments={"riptide":3}]Ride the horse
Use riptide while facing any direction
❌ The horse takes damage
Expected result
Either the horse would not take damage or the player would not have been able to use Riptide while riding it.
Hi!
Thank you for your report!
We're already tracking this issue at MC-222949, so I will resolve and link this ticket as a Duplicate.
I suggest also to browse through the main issue for potential fixes.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki