Trident

A trident is a weapon used in both melee and ranged combat and is a rare drop from drowned.

Obtaining
Tridents are not craftable. A trident can be obtained only when dropped by a drowned.

Mob loot
15% of drowned $$ (6.25% $$) spawn with a trident of random durability as their natural weapon, and only the drowned with a trident have a 8.5% chance of dropping the trident, increasing by 1% with each level of Looting.

Only naturally-spawned drowned can spawn with a trident and have a chance of dropping one. $$, a trident held by a drowned has a chance to be enchanted, but the trident's enchantment, if Riptide, has no effects for drowned, but it works with loyalty. (at least I never encountered a drowned using riptide, but I saw the loyalty enchantment working)

Thrown tridents
Tridents thrown onto the ground by a player can be picked up; however, tridents thrown by drowned cannot be picked up, similar to arrows shot by skeletons.

Drowned
15% of drowned $$, and 6.25% $$, spawn with a trident as its natural weapon. It throws the trident at its opponent every 1.5 seconds, dealing damage in normal difficulty. A drowned can throw unlimited tridents, and these tridents cannot be picked up by the player.

A villager can be turned into a zombie villager if it is killed by a trident thrown by a drowned: the chance of conversion is 0% on Easy difficulty, 50% on Normal, and 100% on Hard and Hardcore.

$$, a drowned can use the trident's melee attack if its target is within three blocks. The melee attack deals damage.

Melee attack
Pressing while holding a trident deals damage to both mobs and players. Tridents deal melee damage. A successful hit consumes durability of the trident.

Ranged attack
Pressing and holding while holding a trident charges it. When released at full charge, the trident is thrown and deals damage to any entity it hits. It flies on a ballistic trajectory similar to that of an arrow, but at 80% strength. If the trident hits a block, it sticks to the block. If it hits an entity, it bounces off the entity and lands nearby. It is also blocked by shields and can be retrieved once it lands in the ground. Thrown tridents can trigger wooden buttons, wooden pressure plates, and target blocks. A trident can be thrown at a chorus flower or pointed dripstone to break it, which causes the block to be dropped as its respective item.

$$ and Java Edition Combat Test 4, tridents can be shot by dispensers regardless of enchantment.

Tridents enchanted with Loyalty return to the thrower after hitting an entity/hitting and bouncing off an entity then hitting a block 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. $$, throwing a trident enchanted with Loyalty into the void destroys it, while $$ 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.

Thrown tridents take 1 durability damage, regardless of whether it hit an entity or not. Tridents with 1 durability remaining cannot be thrown.

Tridents enchanted with Riptide launch the player a certain distance when thrown, with the distance increasing for higher enchantment levels. They can be thrown only if the player is standing in water, or if it is raining on the block they are standing on. If the player charges it but walks into a nearby dry area, the charge is canceled. If the player throws a Riptide trident and collides with a mob, the mob takes melee damage (including critical damage if the player is falling). $$ tridents enchanted with Riptide take one durability damage upon throwing, and lose an additional 1 durability if it collides with an entity on both editions.

Tridents enchanted with Channeling summon a lightning bolt if there is a thunderstorm, although only upon hitting a mob or player standing in the rain as well as a lightning rod placed in the rain.

Unlike other projectiles, the trident does not slow down when thrown through water or lava.

$$, the Impaling enchantment affects all water mobs. $$, it deals extra damage to players and mobs in water or rain.

Unlike arrows, thrown tridents do not despawn. Tridents despawn after 60 seconds if they are not picked up.

Using Riptide, nearby players or mobs deal splash damage within an 8.25×8.25×4.25 cubical area. It stacks with the Impaling enchantment and Strength effect. Critical hits do not increase splash damage, but affect the target.
 * Magical damage

$$, thrown tridents can damage the ender dragon while resting on the bedrock fountain. $$, they act just like arrows — deflected, but burn as if they had Flame.

Damage
Thrown tridents and splashes deal damage. The damage remains the same regardless of the trident's speed. It has a faster charging speed than a bow or crossbow (barring the Quick Charge enchantment.)

Java Edition
$$, tridents have an attack speed of 1.1 and take ~0.91 seconds to recover.

Bedrock Edition
$$, tridents have no attack cooldown and do the following damage:

Elytra
A trident with the Riptide enchantment can be used to propel a player with a pair of elytra, but only in rainy weather, during snowy weather in certain biomes or while the player is in a body of water. This does not consume any durability.

Impaling damage
$$, the Impaling enchantment deals extra damage to all water mobs. $$ and in Java Edition Combat Test 3, it deals extra damage to all players and mobs in water or rain.

Enchantments
Tridents have a base enchantability of 1 and can receive the following enchantments:
 * Notes

Repairing
Tridents have the same durability as an iron sword. Whenever a trident deals damage, its durability decreases by 1.

Tridents can be repaired by:
 * combining two damaged tridents on a crafting table or the 2×2 inventory grid, which removes any enchantments.
 * combining two damaged tridents in a grindstone, which removes any enchantments except for Curse of Vanishing and Curse of Binding
 * combining a damaged trident with another trident on an anvil, which preserves enchantments.
 * applying the Mending enchantment.

ID




Entity data
Tridents have entity data associated with them that contain various properties of the entity.




 * See Bedrock Edition level format/Entity format.
 * See Bedrock Edition level format/Entity format.

Trivia

 * If a player throws a Loyalty-enchanted trident and the player's inventory subsequently fills, the trident hovers around or through the player's skin until an inventory slot opens, which it fills immediately. Multiple tridents can be 'queued' to re-enter the player's inventory in this manner.
 * $$ in Creative mode, sword enchantments can be applied to tridents. This includes Sharpness, Fire Aspect, and Looting. Sharpness, Smite, and Bane of Arthropods increases their damage against their specific mobs, as well.
 * Thrown tridents pass through nether portal blocks without being transported to the Nether or the Overworld.
 * Using a trident enchanted with Riptide while riding an entity cancels the charge and does nothing.