When in the "about to throw trident" animation, teleporting to another dimension removes the trident from the player's inventory & effectively erases it from the world.
This was confirmed by searching for all thrown_trident entities in the world; the trident no longer existed. This does not affect gateways or enderpearl teleportation, as long as the teleportation is within the same dimension.
To reproduce, simply step into a portal while aiming your trident & it will disappear.
Linked issues
is duplicated by 5
Comments 3
Affects 1.18.1
Seems to only affect players walking in the nether-side. I also tested this with an end portal & the reverse is true: Players' tridents will be in the exit portal of the end when thrown end-side but they will vanish if thrown overworld-side.
Affects 1.17.40.20