See summary. This bug probably occurs due to the trident's entity being derived from the arrow entity.
How to reproduce:
- Summon 3 creepers in a row that have NoAI set.
- Put down a repeating command block, set it to "Always Active", and put in the following command:
- Throw the trident at the creepers, then replace trident with arrow
- Shoot the arrow at the creepers, they all get hurt
- Then replace the command in the command block with the following command:
- Throw the trident