The bug
When you attack a mob by throwing a Riptide-enchanted trident, the mob often takes knockback in a random direction (sometimes directly towards you) instead of away from you, which would be the expected behavior similar to normal melee and projectile attacks.
How to reproduce
Set weather to rain with
/weather rain
Give yourself a trident and enchant it with Riptide (
/enchant @s riptide
, any level works)Switch to 3rd person mode (using F5) and throw the trident at a mob
Attachments
Comments 12
Can confirm in 1.18.1 and 22w03a. This can also be seen with players and isn't just exclusive to mobs.
[media]Can confirm in 1.18.2. This ticket may relate to MC-232770.
I would add that on 18w50a throwing a riptide trident at a mob (any level works) will 1 hit kill the mob.
I tried with pillagers and drowned (under water) they all die when you collide with them.