Use Better Tridents
Mod version shipped with FlammiCraft: 21.2.0
On NeoForge, install Puzzles Lib.
With the default settings, repair a trident at an anvil with prismarine shards. An elder guardian drops one trident fragment. Three fragments make a new trident.
Enchantments and retrieval
Loyalty can return a trident thrown into the void. The trident attempts to return to the inventory slot it was thrown from. Loyalty can also bring back drops and experience from defeated mobs, including melee kills. With boostImpaling enabled, Impaling also affects creatures in contact with rain or water.
Repair, retrieval, and loot are separate server options. Fragment drops are a common option that requires a world restart. Changing boostImpaling requires a game restart.