[PR #4611] [MERGED] Server players: build limit overlay and shoulder parrot ambient sound #5728

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4611
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/39-build-limit-shoulder


📝 Commits (1)

  • e311967 Server players: build limit overlay, shoulder parrot ambient sound

📊 Changes

3 files changed (+190 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_actions.rs (+69 -7)
📝 crates/horizon-client/src/game/shoulders.rs (+48 -0)
📝 crates/horizon-client/src/mobs/parrot.rs (+73 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3520

What and why

  • ServerPlayer.sendBuildLimitMessage: a guest's (and the server-thread window's) UseItemOn above the world's top or below its bottom is refused with the red build.tooHigh / build.tooLow overlay and no block resend; a failed block placement facing up at the top or down at the bottom says it too; a block outside the world border gets the build.tooHigh overlay as vanilla's mayInteract else-branch does (game/lan_actions.rs). wasBlockPlacementAttempt is ported (block item or filled bucket, not on cooldown). Vanilla sends the up-at-top message twice in a row (identical overlay); it is sent once here.
  • ServerPlayer.playShoulderEntityAmbientSound: a Silent-less parrot on a shoulder now, one tick in 200 per shoulder, imitates a mob within 20 blocks (Parrot.imitateNearbyMobs) or chirps / rarely imitates (Parrot.getAmbient); new mobs::parrot::shoulder_sound. Draws come from the level random (the player's own entity random is not kept).

Kind

  • parity: Horizon now does what vanilla 26.3 does

Vanilla reference

ServerGamePacketListenerImpl.handleUseItemOn, wasBlockPlacementAttempt, ServerPlayer.sendBuildLimitMessage, ServerPlayer.handleShoulderEntities, playShoulderEntityAmbientSound, Parrot.imitateNearbyMobs, Parrot.getAmbient.

Self-check

cargo fmt, clippy -p horizon-client --all-targets -D warnings, test -p horizon-client --lib parrot (unit test a_shoulder_parrot_imitates_or_chirps). Harnesses left to CI.

🤖 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/4611 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/39-build-limit-shoulder` --- ### 📝 Commits (1) - [`e311967`](https://github.com/horizon-rust/horizon/commit/e311967b296ac62e3093e19c45535ddd78bedcb4) Server players: build limit overlay, shoulder parrot ambient sound ### 📊 Changes **3 files changed** (+190 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+69 -7) 📝 `crates/horizon-client/src/game/shoulders.rs` (+48 -0) 📝 `crates/horizon-client/src/mobs/parrot.rs` (+73 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3520 ## What and why - `ServerPlayer.sendBuildLimitMessage`: a guest's (and the server-thread window's) UseItemOn above the world's top or below its bottom is refused with the red `build.tooHigh` / `build.tooLow` overlay and no block resend; a failed block placement facing up at the top or down at the bottom says it too; a block outside the world border gets the `build.tooHigh` overlay as vanilla's `mayInteract` else-branch does (`game/lan_actions.rs`). `wasBlockPlacementAttempt` is ported (block item or filled bucket, not on cooldown). Vanilla sends the up-at-top message twice in a row (identical overlay); it is sent once here. - `ServerPlayer.playShoulderEntityAmbientSound`: a `Silent`-less parrot on a shoulder now, one tick in 200 per shoulder, imitates a mob within 20 blocks (`Parrot.imitateNearbyMobs`) or chirps / rarely imitates (`Parrot.getAmbient`); new `mobs::parrot::shoulder_sound`. Draws come from the level random (the player's own entity random is not kept). ## Kind - [x] parity: Horizon now does what vanilla 26.3 does ## Vanilla reference `ServerGamePacketListenerImpl.handleUseItemOn`, `wasBlockPlacementAttempt`, `ServerPlayer.sendBuildLimitMessage`, `ServerPlayer.handleShoulderEntities`, `playShoulderEntityAmbientSound`, `Parrot.imitateNearbyMobs`, `Parrot.getAmbient`. ## Self-check `cargo fmt`, `clippy -p horizon-client --all-targets -D warnings`, `test -p horizon-client --lib parrot` (unit test `a_shoulder_parrot_imitates_or_chirps`). Harnesses left to CI. 🤖 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 05:14:35 +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#5728
No description provided.