Minecraft wiki entry for Trident, associated text: Tridents enchanted with Loyalty return to the thrower after hitting an entity‌[Java Edition only]/hitting and bouncing off an entity then hitting a block‌[Bedrock Edition only][2] or just a block. A Loyalty-enchanted trident fired from a dispenser just sticks to the block it strikes. Higher levels of enchantment result in shorter recovery times. In Java Edition, throwing a trident enchanted with Loyalty into the void destroys it, while in Bedrock Edition it automatically returns to the player. Tridents (if enchanted with Loyalty), can take fire damage but still return to the player if thrown in lava. This is especially helpful in the Nether should the player be using a trident instead of a bow. If a trident enchanted with Loyalty attempts to return to a player with no available inventory space, the trident floats near the player until inventory space becomes available.