[PR #2968] [MERGED] Award the target hit and honey slide advancements #4722

Closed
opened 2026-11-03 05:07:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2968
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @rdbtCVS

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


📝 Commits (1)

  • ad61c30 Award target hit and honey slide advancements

📊 Changes

5 files changed (+71 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -1)
📝 crates/horizon-client/src/game/advancements.rs (+36 -0)
📝 crates/horizon-client/src/game/creatures.rs (+17 -2)
📝 crates/horizon-client/src/game/lan_actions.rs (+8 -1)
📝 crates/horizon-client/src/motion.rs (+4 -1)

📄 Description

What and why

The Bullseye (adventure/bullseye) and Sticky Situation (adventure/honey_block_slide) advancements never fired because their triggers were not wired up.

  • Hitting a target block runs the target_hit trigger with the signal strength and the projectile, and checks the player and projectile conditions (including distance from the shooter). On a LAN host it goes to the player who shot.
  • Sliding down a honey block runs slide_down_block with the block and its state. Vanilla checks this every 20 game ticks, so the slide event is now raised on those ticks even when no sound or particle is rolled.
  • The trigger goes to the right player in single player, LAN and on the server-thread client.

Vanilla reference

  • TargetBlock.java:37-52: the hit calls the trigger with the signal strength.
  • TargetBlockTrigger.java:22-45: signal strength, projectile and player conditions.
  • HoneyBlock.java:57-62,94-98: the slide and the 20-tick check.
  • SlideDownBlockTrigger.java:21-48: the block and state conditions.
  • data/minecraft/advancement/adventure/bullseye.json and honey_block_slide.json: the criteria used.

Self-check

clippy and fmt passed for horizon-client before the rebase onto current main, which was clean. Not run in game.


🔄 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/2968 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/block-advancement-triggers` --- ### 📝 Commits (1) - [`ad61c30`](https://github.com/horizon-rust/horizon/commit/ad61c30f465d8a57559d53761c2b3ca86a34711e) Award target hit and honey slide advancements ### 📊 Changes **5 files changed** (+71 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -1) 📝 `crates/horizon-client/src/game/advancements.rs` (+36 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+17 -2) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+8 -1) 📝 `crates/horizon-client/src/motion.rs` (+4 -1) </details> ### 📄 Description ## What and why The Bullseye (`adventure/bullseye`) and Sticky Situation (`adventure/honey_block_slide`) advancements never fired because their triggers were not wired up. - Hitting a target block runs the `target_hit` trigger with the signal strength and the projectile, and checks the player and projectile conditions (including distance from the shooter). On a LAN host it goes to the player who shot. - Sliding down a honey block runs `slide_down_block` with the block and its state. Vanilla checks this every 20 game ticks, so the slide event is now raised on those ticks even when no sound or particle is rolled. - The trigger goes to the right player in single player, LAN and on the server-thread client. ## Vanilla reference - `TargetBlock.java:37-52`: the hit calls the trigger with the signal strength. - `TargetBlockTrigger.java:22-45`: signal strength, projectile and player conditions. - `HoneyBlock.java:57-62,94-98`: the slide and the 20-tick check. - `SlideDownBlockTrigger.java:21-48`: the block and state conditions. - `data/minecraft/advancement/adventure/bullseye.json` and `honey_block_slide.json`: the criteria used. ## Self-check clippy and fmt passed for horizon-client before the rebase onto current main, which was clean. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:27 +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#4722
No description provided.