[PR #2245] [MERGED] Fire the shot_crossbow and killed_by_arrow advancement triggers #4138

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

📋 Pull Request Information

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

Base: main ← Head: fix/crossbow-advancement-triggers


📝 Commits (4)

  • 581dc08 Fire shot_crossbow and killed_by_arrow advancement triggers
  • 716cc7f Merge main into fix/crossbow-advancement-triggers
  • 78d4d7e Merge origin/main into fix/crossbow-advancement-triggers
  • 6d55c17 Merge origin/main into fix/crossbow-advancement-triggers

📊 Changes

5 files changed (+69 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/advancements.rs (+36 -1)
📝 crates/horizon-client/src/arrows.rs (+3 -0)
📝 crates/horizon-client/src/game/advancements.rs (+13 -0)
📝 crates/horizon-client/src/game/creatures.rs (+11 -0)
📝 crates/horizon-client/src/game/crossbow.rs (+6 -0)

📄 Description

What and why

Shooting a crossbow never counted for "Ol' Betsy", and killing a pillager with a crossbow arrow never counted for "Who's the Pillager Now?". The shot_crossbow and killed_by_arrow triggers were not fired.

This fires shot_crossbow after the crossbow shoots, and killed_by_arrow when a player's arrow kills a mob. Arrows now remember the weapon they were shot from (fired_from_weapon) so the crossbow check works.

Piercing arrows are not modelled in Horizon yet, so the multi-kill advancements ("Two Birds, One Arrow", "Arbalistic") still need that first.

Vanilla reference

  • CrossbowItem.performShooting (SHOT_CROSSBOW)
  • AbstractArrow.onHitEntity (KILLED_BY_ARROW), firedFromWeapon
  • ShotCrossbowTrigger, KilledByArrowTrigger
  • adventure/ol_betsy, whos_the_pillager_now

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/2245 **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/crossbow-advancement-triggers` --- ### 📝 Commits (4) - [`581dc08`](https://github.com/horizon-rust/horizon/commit/581dc08cf5be4da424c2e308e7185b1f979a6d79) Fire shot_crossbow and killed_by_arrow advancement triggers - [`716cc7f`](https://github.com/horizon-rust/horizon/commit/716cc7f102608cba46804ca8e30ad5bb9114e524) Merge main into fix/crossbow-advancement-triggers - [`78d4d7e`](https://github.com/horizon-rust/horizon/commit/78d4d7ede4c0794a966fa3c7f7a1932f24bca26e) Merge origin/main into fix/crossbow-advancement-triggers - [`6d55c17`](https://github.com/horizon-rust/horizon/commit/6d55c17322af85a42cd70f36f710231e86e30292) Merge origin/main into fix/crossbow-advancement-triggers ### 📊 Changes **5 files changed** (+69 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/advancements.rs` (+36 -1) 📝 `crates/horizon-client/src/arrows.rs` (+3 -0) 📝 `crates/horizon-client/src/game/advancements.rs` (+13 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+11 -0) 📝 `crates/horizon-client/src/game/crossbow.rs` (+6 -0) </details> ### 📄 Description ## What and why Shooting a crossbow never counted for "Ol' Betsy", and killing a pillager with a crossbow arrow never counted for "Who's the Pillager Now?". The `shot_crossbow` and `killed_by_arrow` triggers were not fired. This fires `shot_crossbow` after the crossbow shoots, and `killed_by_arrow` when a player's arrow kills a mob. Arrows now remember the weapon they were shot from (`fired_from_weapon`) so the crossbow check works. Piercing arrows are not modelled in Horizon yet, so the multi-kill advancements ("Two Birds, One Arrow", "Arbalistic") still need that first. ## Vanilla reference - `CrossbowItem.performShooting` (SHOT_CROSSBOW) - `AbstractArrow.onHitEntity` (KILLED_BY_ARROW), `firedFromWeapon` - `ShotCrossbowTrigger`, `KilledByArrowTrigger` - `adventure/ol_betsy`, `whos_the_pillager_now` ## 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:14:57 +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#4138
No description provided.