[PR #4741] [MERGED] Finish rope hold position, sniffer digging sound and world stem check (parity) #5821

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

📋 Pull Request Information

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

Base: main ← Head: parity/R-client


📝 Commits (2)

  • 303e418 LocalPlayer.getRopeHoldPosition, SnifferSoundInstance.tick, openWorldCheckWorldStemCompatibility: finish the partial ports
  • dc29fd2 Merge hr/main into parity/R-client

📊 Changes

10 files changed (+332 additions, -25 deletions)

View changed files

📝 crates/horizon-client-render/src/datapack.rs (+31 -0)
📝 crates/horizon-client-render/src/sound_engine.rs (+77 -0)
📝 crates/horizon-client/src/game.rs (+4 -0)
📝 crates/horizon-client/src/game/leads.rs (+38 -8)
📝 crates/horizon-client/src/game/mob_sounds.rs (+10 -2)
📝 crates/horizon-client/src/game/sniffers.rs (+6 -2)
📝 crates/horizon-client/src/mobs/sniffer.rs (+4 -0)
📝 crates/horizon-client/src/save.rs (+130 -10)
📝 crates/horizon-client/src/title.rs (+3 -3)
📝 crates/horizon-world/src/datafix/files.rs (+29 -0)

📄 Description

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

Part of #3518

Finishes three rows that earlier PRs ported only partly.

Rows

  • LocalPlayer.getRopeHoldPosition: the first-person lead anchor now uses handDir from the main arm (0.39 * handDir; the third-person 0.22 * handDir too), Mth.lerp(pt * 0.5, getYRot(), yRotO) for yaw and pitch (the view at the start of the tick is kept as rope_rot_old), and getEyePosition(pt) (lerped feet plus eye height) instead of the unlerped position.
  • SnifferSoundInstance.tick: the digging sound is now a tickable SoundInstance (Ticking::Sniffer, linear attenuation, not looping, at the origin until its first tick like vanilla). Each tick it moves to the sniffer and stops when the sniffer is removed, silent, has a target or !canPlayDiggingSound() (state digging or searching).
  • openWorldCheckWorldStemCompatibility: world_gen_unstable now merges the enabled data packs' data/*/dimension/*.json over the saved dimensions (WorldDimensions.bake(datapackDimensions)), and the generator settings of a world that still needs file fixes are read in memory the way LevelDatToSavedDataFileFix leaves them (datafix::files::current_world_gen_settings), so the backup question comes on the first open, not the next.

Vanilla followed

LocalPlayer.getRopeHoldPosition, Player.getRopeHoldPosition, SnifferSoundInstance, ClientPacketListener.handleEntityEvent (63), WorldOpenFlows.openWorldCheckWorldStemCompatibility, LevelStorageSource.getLevelDataAndDimensions, WorldDimensions.bake.

Tests

game::leads::rope_hold_tests, sound_engine::tests::sniffer_digging_sound_follows_the_sniffer_and_stops, save::tests::world_stem_compatibility_reads_data_pack_dimensions, save::tests::world_gen_settings_of_a_world_needing_file_fixes_are_read_in_memory. fmt, clippy -D warnings and the focused tests pass; 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/4741 **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/R-client` --- ### 📝 Commits (2) - [`303e418`](https://github.com/horizon-rust/horizon/commit/303e418b084eb86c9e35911f9394a2f15660fe81) LocalPlayer.getRopeHoldPosition, SnifferSoundInstance.tick, openWorldCheckWorldStemCompatibility: finish the partial ports - [`dc29fd2`](https://github.com/horizon-rust/horizon/commit/dc29fd238b5018124c8320a0e7a87b7bef56b75f) Merge hr/main into parity/R-client ### 📊 Changes **10 files changed** (+332 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/datapack.rs` (+31 -0) 📝 `crates/horizon-client-render/src/sound_engine.rs` (+77 -0) 📝 `crates/horizon-client/src/game.rs` (+4 -0) 📝 `crates/horizon-client/src/game/leads.rs` (+38 -8) 📝 `crates/horizon-client/src/game/mob_sounds.rs` (+10 -2) 📝 `crates/horizon-client/src/game/sniffers.rs` (+6 -2) 📝 `crates/horizon-client/src/mobs/sniffer.rs` (+4 -0) 📝 `crates/horizon-client/src/save.rs` (+130 -10) 📝 `crates/horizon-client/src/title.rs` (+3 -3) 📝 `crates/horizon-world/src/datafix/files.rs` (+29 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3518 Finishes three rows that earlier PRs ported only partly. ## Rows - `LocalPlayer.getRopeHoldPosition`: the first-person lead anchor now uses `handDir` from the main arm (`0.39 * handDir`; the third-person `0.22 * handDir` too), `Mth.lerp(pt * 0.5, getYRot(), yRotO)` for yaw and pitch (the view at the start of the tick is kept as `rope_rot_old`), and `getEyePosition(pt)` (lerped feet plus eye height) instead of the unlerped position. - `SnifferSoundInstance.tick`: the digging sound is now a tickable `SoundInstance` (`Ticking::Sniffer`, linear attenuation, not looping, at the origin until its first tick like vanilla). Each tick it moves to the sniffer and stops when the sniffer is removed, silent, has a target or `!canPlayDiggingSound()` (state digging or searching). - `openWorldCheckWorldStemCompatibility`: `world_gen_unstable` now merges the enabled data packs' `data/*/dimension/*.json` over the saved dimensions (`WorldDimensions.bake(datapackDimensions)`), and the generator settings of a world that still needs file fixes are read in memory the way `LevelDatToSavedDataFileFix` leaves them (`datafix::files::current_world_gen_settings`), so the backup question comes on the first open, not the next. ## Vanilla followed `LocalPlayer.getRopeHoldPosition`, `Player.getRopeHoldPosition`, `SnifferSoundInstance`, `ClientPacketListener.handleEntityEvent` (63), `WorldOpenFlows.openWorldCheckWorldStemCompatibility`, `LevelStorageSource.getLevelDataAndDimensions`, `WorldDimensions.bake`. ## Tests `game::leads::rope_hold_tests`, `sound_engine::tests::sniffer_digging_sound_follows_the_sniffer_and_stops`, `save::tests::world_stem_compatibility_reads_data_pack_dimensions`, `save::tests::world_gen_settings_of_a_world_needing_file_fixes_are_read_in_memory`. fmt, clippy `-D warnings` and the focused tests pass; 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:15:14 +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#5821
No description provided.