[PR #2254] [MERGED] Fire the construct_beacon advancement trigger when a beacon activates #4146

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

📋 Pull Request Information

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

Base: main ← Head: fix/construct-beacon-trigger


📝 Commits (5)

  • e87e839 Fire the construct_beacon trigger when a beacon activates
  • f9e11e7 Merge origin/main into fix/construct-beacon-trigger
  • 1727f95 Merge origin/main into fix/construct-beacon-trigger
  • 8187f1e Merge origin/main into fix/construct-beacon-trigger
  • 1788bf8 Merge origin/main into fix/construct-beacon-trigger

📊 Changes

2 files changed (+37 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/advancements.rs (+13 -0)
📝 crates/horizon-client/src/game/beacon.rs (+24 -0)

📄 Description

What and why

Activating a beacon never fired the minecraft:construct_beacon trigger, so "Bring Home the Beacon" (nether/create_beacon) and "Beaconator" (nether/create_full_beacon, level 4) could not be earned.

When a beacon goes from inactive to active, the trigger now fires with its pyramid level for each player in the box around it. On a server this includes guests, each with their own advancements.

Vanilla reference

  • BeaconBlockEntity.tick: on !wasActive && isActive, CriteriaTriggers.CONSTRUCT_BEACON.trigger(player, entity.levels) for each ServerPlayer in AABB(x, y, z, x, y - 4, z).inflate(10, 5, 10).
  • ConstructBeaconTrigger.TriggerInstance.matches: the level range.

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/2254 **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/construct-beacon-trigger` --- ### 📝 Commits (5) - [`e87e839`](https://github.com/horizon-rust/horizon/commit/e87e839c97ba351d519804aa2290cbc70bf1ad45) Fire the construct_beacon trigger when a beacon activates - [`f9e11e7`](https://github.com/horizon-rust/horizon/commit/f9e11e73029233d8921a7b5a76eaf521a00dddc2) Merge origin/main into fix/construct-beacon-trigger - [`1727f95`](https://github.com/horizon-rust/horizon/commit/1727f95575ce3acc3661d0ccd24790896d60beb7) Merge origin/main into fix/construct-beacon-trigger - [`8187f1e`](https://github.com/horizon-rust/horizon/commit/8187f1ef6607bf44f2eed251953a28c7a816a175) Merge origin/main into fix/construct-beacon-trigger - [`1788bf8`](https://github.com/horizon-rust/horizon/commit/1788bf81347e60833935d23420a22b76db04d2dc) Merge origin/main into fix/construct-beacon-trigger ### 📊 Changes **2 files changed** (+37 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/advancements.rs` (+13 -0) 📝 `crates/horizon-client/src/game/beacon.rs` (+24 -0) </details> ### 📄 Description ## What and why Activating a beacon never fired the `minecraft:construct_beacon` trigger, so "Bring Home the Beacon" (`nether/create_beacon`) and "Beaconator" (`nether/create_full_beacon`, level 4) could not be earned. When a beacon goes from inactive to active, the trigger now fires with its pyramid level for each player in the box around it. On a server this includes guests, each with their own advancements. ## Vanilla reference - `BeaconBlockEntity.tick`: on `!wasActive && isActive`, `CriteriaTriggers.CONSTRUCT_BEACON.trigger(player, entity.levels)` for each `ServerPlayer` in `AABB(x, y, z, x, y - 4, z).inflate(10, 5, 10)`. - `ConstructBeaconTrigger.TriggerInstance.matches`: the `level` range. ## 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:15:01 +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#4146
No description provided.