[PR #1883] [MERGED] Copper golem statues change pose when right-clicked #3837

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

📋 Pull Request Information

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

Base: main ← Head: fix/copper-golem-statue-poses


📝 Commits (1)

  • aa2f60b Copper golem statues turn to their next pose when right-clicked

📊 Changes

3 files changed (+76 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+10 -0)
📝 crates/horizon-world/src/level/interact.rs (+31 -0)
📝 tools/test_use_item_on_parity.py (+35 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What the player reported

.dezerx on Discord ("Few bugs" thread): right-clicking a copper golem statue doesn't change the golem's stance.

Vanilla rule

CopperGolemStatueBlock.useItemOn (and the weathering subclass's): anything but an axe (#minecraft:axes), including an empty hand, sets copper_golem_pose to the next pose (Pose.getNextPose, which wraps). It plays entity.copper_golem_become_statue, setBlockAndUpdates and sends block_change. Honeycomb on a statue that still weathers passes, so HoneycombItem waxes it. An axe passes on to AxeItem (scrape or wax off).

Change

  • horizon-world use_item_on: the statue case (turn_statue).
  • While testing this in the harness, two gaps showed up on every copper block: an axe that scrapes, unwaxes or strips (use_block_transformer) and honeycomb that waxes didn't count minecraft:used (ItemStack.useOn), and waxing sent no block_change game event (HoneycombItem.useOn). Both are added.

Tested

  • test_use_item_on_parity.py gets a statue case: all 8 statues, any pose and facing, an empty hand, a stick, stone, copper, a pickaxe, honeycomb, a statue item, an axe on the aged or waxed ones, the item sometimes in the off hand. PASS, 4000/4000. Before the stat/game-event fix, the honeycomb and axe cases differed only by the missing stat …:used and G block_change.
  • block_transformer, dispenser, interaction_input: PASS.
  • In game (horizon-ctl, fresh temp homes), on the server thread (the default) and in-frame (--in-frame), clicking a statue: empty hand → sitting, empty → running, stick → star, empty → standing. Honeycomb waxes it (waxed_copper_golem_statue), and an axe on an exposed one scrapes it back to copper_golem_statue. copper_golem_become_statue was heard once per turn (4/4) in both modes. Screenshots on the server thread show the statue standing, then running after two clicks.

Not covered: an axe on an unaffected, unwaxed statue should bring the copper golem back (CopperGolemStatueBlockEntity.removeStatue). Horizon doesn't do that yet, so the harness leaves it out. Also seen, and not changed here: on the server thread, the waxing and scraping sounds play twice (the client's prediction plus the server's sound).

python3 tools/pr_ready.py --quick (the two Python errors are OracleReuseTests and ParityRunnerTests, which fail on main on macOS because of /var vs /private/var):

Check Result
Scope ✅ 3 files, +76 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 287 run, FAILED (errors=2) (2 min 0 s)
rustfmt ✅ (23 s)
clippy ✅ (2 min 50 s)
tests: horizon-client, horizon-world ✅ 1474 passed (14 min 38 s)
doc tests ✅ 0 passed (9 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 313 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 301 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 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/1883 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/copper-golem-statue-poses` --- ### 📝 Commits (1) - [`aa2f60b`](https://github.com/horizon-rust/horizon/commit/aa2f60b7bd78179f1e7723c866212fd4e1ec548e) Copper golem statues turn to their next pose when right-clicked ### 📊 Changes **3 files changed** (+76 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+10 -0) 📝 `crates/horizon-world/src/level/interact.rs` (+31 -0) 📝 `tools/test_use_item_on_parity.py` (+35 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What the player reported .dezerx on Discord ("Few bugs" thread): right-clicking a copper golem statue doesn't change the golem's stance. ## Vanilla rule `CopperGolemStatueBlock.useItemOn` (and the weathering subclass's): anything but an axe (`#minecraft:axes`), including an empty hand, sets `copper_golem_pose` to the next pose (`Pose.getNextPose`, which wraps). It plays `entity.copper_golem_become_statue`, `setBlockAndUpdate`s and sends `block_change`. Honeycomb on a statue that still weathers passes, so `HoneycombItem` waxes it. An axe passes on to `AxeItem` (scrape or wax off). ## Change - `horizon-world` `use_item_on`: the statue case (`turn_statue`). - While testing this in the harness, two gaps showed up on every copper block: an axe that scrapes, unwaxes or strips (`use_block_transformer`) and honeycomb that waxes didn't count `minecraft:used` (`ItemStack.useOn`), and waxing sent no `block_change` game event (`HoneycombItem.useOn`). Both are added. ## Tested - `test_use_item_on_parity.py` gets a statue case: all 8 statues, any pose and facing, an empty hand, a stick, stone, copper, a pickaxe, honeycomb, a statue item, an axe on the aged or waxed ones, the item sometimes in the off hand. **PASS, 4000/4000.** Before the stat/game-event fix, the honeycomb and axe cases differed only by the missing `stat …:used` and `G block_change`. - `block_transformer`, `dispenser`, `interaction_input`: PASS. - In game (`horizon-ctl`, fresh temp homes), on the **server thread** (the default) and **in-frame** (`--in-frame`), clicking a statue: empty hand → `sitting`, empty → `running`, stick → `star`, empty → `standing`. Honeycomb waxes it (`waxed_copper_golem_statue`), and an axe on an exposed one scrapes it back to `copper_golem_statue`. `copper_golem_become_statue` was heard once per turn (4/4) in both modes. Screenshots on the server thread show the statue standing, then running after two clicks. Not covered: an axe on an unaffected, unwaxed statue should bring the copper golem back (`CopperGolemStatueBlockEntity.removeStatue`). Horizon doesn't do that yet, so the harness leaves it out. Also seen, and not changed here: on the server thread, the waxing and scraping sounds play twice (the client's prediction plus the server's sound). `python3 tools/pr_ready.py --quick` (the two Python errors are `OracleReuseTests` and `ParityRunnerTests`, which fail on main on macOS because of /var vs /private/var): | Check | Result | | --- | --- | | Scope | ✅ 3 files, +76 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 287 run, FAILED (errors=2) (2 min 0 s) | | rustfmt | ✅ (23 s) | | clippy | ✅ (2 min 50 s) | | tests: horizon-client, horizon-world | ✅ 1474 passed (14 min 38 s) | | doc tests | ✅ 0 passed (9 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 313 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 301 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:12:40 +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#3837
No description provided.