[PR #2253] [MERGED] Fire item_used_on_block for block transforms, waxing, jukebox discs and vault keys #4147

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/2253
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/item-used-on-block-trigger


📝 Commits (1)

  • 8c8f857 Fire item_used_on_block when an axe, honeycomb, disc or vault key is used on a block

📊 Changes

3 files changed (+8 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+4 -0)
📝 crates/horizon-client/src/game/jukebox.rs (+2 -0)
📝 crates/horizon-client/src/game/vault.rs (+2 -0)

📄 Description

What and why

Waxing copper with honeycomb ("Wax On"), scraping wax with an axe ("Wax Off"), scraping a lit copper bulb ("Lighten Up!"), putting a disc into a jukebox in a meadow, and using a trial key on a vault ("Under Lock and Key", "Revaulting") never gave their advancements. The item_used_on_block trigger was only fired for composters, decorated pots, respawn anchors and pumpkins.

This fires it from the axe/shovel/hoe block transform and from honeycomb waxing (before the block changes, so the block check sees the old block), and when a disc is inserted into a jukebox or a key is used on an active vault. The four places that already fired it are untouched.

Not covered because Horizon has no such player action yet: glow ink on signs, a compass on a lodestone, a glass bottle on a smoking beehive.

Vanilla reference

  • BlockTransformer.transformBlock, HoneycombItem.useOn
  • ServerPlayerGameMode.useItemOn (ITEM_USED_ON_BLOCK after a consumed useItemOn)
  • JukeboxBlock.useItemOn, VaultBlock.useItemOn
  • ItemUsedOnLocationTrigger

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/2253 **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/item-used-on-block-trigger` --- ### 📝 Commits (1) - [`8c8f857`](https://github.com/horizon-rust/horizon/commit/8c8f857313bd5fbe82cb47af8d339640460ac174) Fire item_used_on_block when an axe, honeycomb, disc or vault key is used on a block ### 📊 Changes **3 files changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+4 -0) 📝 `crates/horizon-client/src/game/jukebox.rs` (+2 -0) 📝 `crates/horizon-client/src/game/vault.rs` (+2 -0) </details> ### 📄 Description ## What and why Waxing copper with honeycomb ("Wax On"), scraping wax with an axe ("Wax Off"), scraping a lit copper bulb ("Lighten Up!"), putting a disc into a jukebox in a meadow, and using a trial key on a vault ("Under Lock and Key", "Revaulting") never gave their advancements. The `item_used_on_block` trigger was only fired for composters, decorated pots, respawn anchors and pumpkins. This fires it from the axe/shovel/hoe block transform and from honeycomb waxing (before the block changes, so the block check sees the old block), and when a disc is inserted into a jukebox or a key is used on an active vault. The four places that already fired it are untouched. Not covered because Horizon has no such player action yet: glow ink on signs, a compass on a lodestone, a glass bottle on a smoking beehive. ## Vanilla reference - `BlockTransformer.transformBlock`, `HoneycombItem.useOn` - `ServerPlayerGameMode.useItemOn` (ITEM_USED_ON_BLOCK after a consumed `useItemOn`) - `JukeboxBlock.useItemOn`, `VaultBlock.useItemOn` - `ItemUsedOnLocationTrigger` ## 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#4147
No description provided.