[PR #2458] [MERGED] Drowned throw real tridents instead of arrows #4335

Closed
opened 2026-11-03 04:16:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2458
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/drowned-thrown-trident


📝 Commits (2)

  • 0e658e3 Make drowned throw real tridents instead of arrows
  • 34f57db Trident: Impaling through the enchantment's damage effect

📊 Changes

7 files changed (+185 additions, -31 deletions)

View changed files

📝 crates/horizon-client/examples/probe/arrow_probe.rs (+2 -0)
📝 crates/horizon-client/src/arrows.rs (+47 -4)
📝 crates/horizon-client/src/game/commands.rs (+1 -2)
📝 crates/horizon-client/src/game/creatures.rs (+94 -9)
📝 crates/horizon-client/src/game/lan_entities.rs (+14 -0)
📝 crates/horizon-client/src/mobs/undead.rs (+16 -11)
📝 crates/horizon-client/src/projectiles.rs (+11 -5)

📄 Description

What and why

A drowned holding a trident threw arrows at the player, so after killing it there were arrows lying around instead of tridents. A player reported it on Discord. Fixes #2447.

The throw in drowned_throw was a stand-in written until thrown tridents existed: it shot an arrow with the trident's damage. It now throws a real trident. It is simulated on the server (the projectile list the in-process server and LAN guests are fed from) and sent to clients as a minecraft:trident entity, so it renders as a trident in single player, on LAN, and in the in-frame renderer.

  • New ProjectileKind::Trident, ticked by the existing arrow code (arrows::tick), so it hits the player, other mobs, minecarts, dragon parts and guests like a mob's arrow does.
  • Aim and speed are unchanged (power 1.6, same inaccuracy). The thrown item is the drowned's held trident with its enchantments.
  • Owner is the drowned (death message and kill credit). Pickup stays disallowed and there is no Loyalty return.
  • Flight and hits: 0.99 water inertia, 8 damage plus Impaling on aquatic mobs, trident damage type on the player, item.trident.hit on an entity and item.trident.hit_ground on a block, then the reversed bounce, no more hits after that, and despawn after 1200 ticks on the ground.
  • Not covered: Channeling's lightning for a mob's trident, and saving such a trident to the world file (player tridents are not saved either).

Vanilla reference

  • Drowned.performRangedAttack
  • ThrownTrident (onHitEntity, findHitEntity, tickDespawn, getWaterInertia, getDefaultHitGroundSoundEvent)
  • AbstractArrow constructor (pickup only for a player owner) and ProjectileDeflection.REVERSE

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2458 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/drowned-thrown-trident` --- ### 📝 Commits (2) - [`0e658e3`](https://github.com/horizon-rust/horizon/commit/0e658e3e6249e132db5f2dc2add61593a7205480) Make drowned throw real tridents instead of arrows - [`34f57db`](https://github.com/horizon-rust/horizon/commit/34f57dbcac49598cb18fc68ae4c1d6421594f6f4) Trident: Impaling through the enchantment's damage effect ### 📊 Changes **7 files changed** (+185 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/arrow_probe.rs` (+2 -0) 📝 `crates/horizon-client/src/arrows.rs` (+47 -4) 📝 `crates/horizon-client/src/game/commands.rs` (+1 -2) 📝 `crates/horizon-client/src/game/creatures.rs` (+94 -9) 📝 `crates/horizon-client/src/game/lan_entities.rs` (+14 -0) 📝 `crates/horizon-client/src/mobs/undead.rs` (+16 -11) 📝 `crates/horizon-client/src/projectiles.rs` (+11 -5) </details> ### 📄 Description ## What and why A drowned holding a trident threw arrows at the player, so after killing it there were arrows lying around instead of tridents. A player reported it on Discord. Fixes #2447. The throw in `drowned_throw` was a stand-in written until thrown tridents existed: it shot an arrow with the trident's damage. It now throws a real trident. It is simulated on the server (the projectile list the in-process server and LAN guests are fed from) and sent to clients as a `minecraft:trident` entity, so it renders as a trident in single player, on LAN, and in the in-frame renderer. - New `ProjectileKind::Trident`, ticked by the existing arrow code (`arrows::tick`), so it hits the player, other mobs, minecarts, dragon parts and guests like a mob's arrow does. - Aim and speed are unchanged (power 1.6, same inaccuracy). The thrown item is the drowned's held trident with its enchantments. - Owner is the drowned (death message and kill credit). Pickup stays disallowed and there is no Loyalty return. - Flight and hits: 0.99 water inertia, 8 damage plus Impaling on aquatic mobs, `trident` damage type on the player, `item.trident.hit` on an entity and `item.trident.hit_ground` on a block, then the reversed bounce, no more hits after that, and despawn after 1200 ticks on the ground. - Not covered: Channeling's lightning for a mob's trident, and saving such a trident to the world file (player tridents are not saved either). ## Vanilla reference - `Drowned.performRangedAttack` - `ThrownTrident` (`onHitEntity`, `findHitEntity`, `tickDespawn`, `getWaterInertia`, `getDefaultHitGroundSoundEvent`) - `AbstractArrow` constructor (pickup only for a player owner) and `ProjectileDeflection.REVERSE` ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:26 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4335
No description provided.