[PR #2225] [MERGED] Signs reopen their editor on right click and take dyes, ink sacs and honeycomb #4118

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

📋 Pull Request Information

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

Base: main ← Head: fix/sign-reopen-and-applicators


📝 Commits (3)

  • e2a399a Reopen signs on right click and apply dyes, ink sacs and honeycomb
  • a8ccf43 Merge main into fix/sign-reopen-and-applicators
  • b463f1c Waxed hanging signs play their own failed-interaction sound

📊 Changes

2 files changed (+162 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+9 -0)
📝 crates/horizon-client/src/game/sign_edit.rs (+153 -1)

📄 Description

What and why

Right-clicking a sign that was already placed opened an empty inventory screen instead of the text editor, and dyes, ink sacs and honeycomb did nothing on signs.

The sign was in the list of blocks that open a menu, and the menu code treated it as a container. Now the menu code for signs follows SignBlock.useWithoutItem: a waxed sign plays the failed-interaction sound, otherwise a player who may build opens the editor for the side they face (SignBlockEntity.getSlotPlayerIsFacing, for standing, wall, ceiling hanging and wall hanging signs).

A new step before the block's own use follows SignBlock.useItemOn: a dye, glow ink sac, ink sac or honeycomb on an unwaxed sign (player may build) changes the colour, glow or wax of the side the player faces, plays the item's sound (honeycomb also sends level event 3003), counts the item as used, sends the block change game event and uses up one item (not in creative). Dyes and ink sacs need text on that side and a real change, honeycomb waxes any sign. When the item does not apply, the click goes on to the empty-hand path, as in vanilla. It works for the in-process server's guests too, because it is part of the shared use code.

Not done: vanilla's "another player is already editing this sign" check, and click commands on waxed signs.

Vanilla reference

  • SignBlock.useItemOn / useWithoutItem
  • SignBlockEntity.getSlotPlayerIsFacing, updateText, setWaxed
  • DyeItem, GlowInkSacItem, InkSacItem, HoneycombItem.tryApplyToSign
  • WallSignBlock.getSignHitboxCenterPosition

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/2225 **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/sign-reopen-and-applicators` --- ### 📝 Commits (3) - [`e2a399a`](https://github.com/horizon-rust/horizon/commit/e2a399aff0ee5463e9059a9a3dd49cb67e5167db) Reopen signs on right click and apply dyes, ink sacs and honeycomb - [`a8ccf43`](https://github.com/horizon-rust/horizon/commit/a8ccf43d2bd33f23f63643f596298d64ea48aae5) Merge main into fix/sign-reopen-and-applicators - [`b463f1c`](https://github.com/horizon-rust/horizon/commit/b463f1c80a75471f1e5171f989dd3036d90d654e) Waxed hanging signs play their own failed-interaction sound ### 📊 Changes **2 files changed** (+162 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+9 -0) 📝 `crates/horizon-client/src/game/sign_edit.rs` (+153 -1) </details> ### 📄 Description ## What and why Right-clicking a sign that was already placed opened an empty inventory screen instead of the text editor, and dyes, ink sacs and honeycomb did nothing on signs. The sign was in the list of blocks that open a menu, and the menu code treated it as a container. Now the menu code for signs follows `SignBlock.useWithoutItem`: a waxed sign plays the failed-interaction sound, otherwise a player who may build opens the editor for the side they face (`SignBlockEntity.getSlotPlayerIsFacing`, for standing, wall, ceiling hanging and wall hanging signs). A new step before the block's own use follows `SignBlock.useItemOn`: a dye, glow ink sac, ink sac or honeycomb on an unwaxed sign (player may build) changes the colour, glow or wax of the side the player faces, plays the item's sound (honeycomb also sends level event 3003), counts the item as used, sends the block change game event and uses up one item (not in creative). Dyes and ink sacs need text on that side and a real change, honeycomb waxes any sign. When the item does not apply, the click goes on to the empty-hand path, as in vanilla. It works for the in-process server's guests too, because it is part of the shared use code. Not done: vanilla's "another player is already editing this sign" check, and click commands on waxed signs. ## Vanilla reference - `SignBlock.useItemOn` / `useWithoutItem` - `SignBlockEntity.getSlotPlayerIsFacing`, `updateText`, `setWaxed` - `DyeItem`, `GlowInkSacItem`, `InkSacItem`, `HoneycombItem.tryApplyToSign` - `WallSignBlock.getSignHitboxCenterPosition` ## 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:48 +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#4118
No description provided.