Mojira Archive
MC-134556

Throwing a trident enchanted with riptide at an enderman doesn't cause it to teleport and deals damage

The bug

When the player throws a trident enchanted with riptide at an enderman, it will not teleport and take damage. Doing the same with an unenchanted trident appears to cause a successful hit, but the enderman teleports away and is not damaged (MC-109147)

What I expected to happen was:

The enderman would teleport away and not take damage.

What actually happened was:

The enderman does not teleport away and takes damage.

How to reproduce

  1. Download and install the attached datapack datapack_MC-134556.zip (a guide on how to do that can be found here)
  2. Run the following command from your chat input (make sure cheats are enabled, doesn't work if run from a command block) 
    /function mc-134556:mc-134556
  3. You will receive a trident enchanted with riptide and it will start to rain. An enderman will spawn nearby with a roof to protect it from the rain.
  4. Throw the trident enchanted with riptide at the enderman.
    →  The enderman doesn't teleport and takes damage