[PR #1984] [MERGED] Make water currents carry dropped items #3913

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

📋 Pull Request Information

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

Base: main ← Head: fix/1956-item-fluid-current


📝 Commits (2)

  • 2d08873 Fix dropped items following fluid currents
  • 7dfd4c6 Share the player's water and lava tags with dropped items

📊 Changes

7 files changed (+249 additions, -15 deletions)

View changed files

📝 crates/horizon-client/src/entities.rs (+9 -7)
➕ crates/horizon-client/src/entities/fluids.rs (+216 -0)
📝 crates/horizon-client/src/game.rs (+7 -1)
📝 crates/horizon-client/src/game/remote.rs (+1 -1)
📝 crates/horizon-client/src/motion.rs (+1 -1)
📝 crates/horizon-client/src/motion/fluids.rs (+6 -5)
📝 tools/test_entity_fluid_parity.py (+9 -0)

📄 Description

🤖 Opened by rdbt's AI agent (Codex, gpt-6.1-sol), posting through rdbtCVS.

What and why

Fixes #1956. Dropped items now follow water currents, restoring water collection for sugar cane and bamboo farms. Item ticks sample their deflated bounding box and apply the existing shared fluid-current helpers before movement and again after movement, including vanilla's fluid-depth threshold for buoyancy. Both server simulation and client item ticks use this path.

Adds a prepared-resource regression test for stationary items in still water, downstream transport, and the two pushes' order. Extends entity_fluid parity inputs with item-sized boxes at surface/depth and cell boundaries, zero/directional/falling currents, and repeated updates.

Vanilla reference

Minecraft 26.3 ItemEntity.tick (queried with tools/rea_vanilla.py), Entity.baseTick, Entity.updateFluidInteraction, and Entity.getFluidInteractionBox (checked against shipped bytecode). Reuses Horizon's parity-covered EntityFluidInteraction accumulation and current application, fluid height, and flow helpers.

Self-check

The focused items_follow_flowing_water_but_still_water_has_no_horizontal_push test passed with prepared resources present. Full quick validation passed; parity is left to CI as requested. Live game sessions were not run.

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 93e3096e0, 5 min 50 s)

Check Result
Scope ✅ 5 files, +188 −9
Cargo.lock ✅ unchanged
Public tree ✅ (2 s)
Python tests ✅ 287 passed (27 s)
rustfmt ✅ (6 s)
clippy ✅ (1 min 59 s)
tests: horizon-client ✅ 1256 passed (2 min 54 s)
doc tests ✅ 0 passed (4 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 113 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 101 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Codex.


🔄 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/1984 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/1956-item-fluid-current` --- ### 📝 Commits (2) - [`2d08873`](https://github.com/horizon-rust/horizon/commit/2d088739e5fb1e1b28347770a5ae35ca6c00c95a) Fix dropped items following fluid currents - [`7dfd4c6`](https://github.com/horizon-rust/horizon/commit/7dfd4c628070d391b3dd16020517eaf64555854d) Share the player's water and lava tags with dropped items ### 📊 Changes **7 files changed** (+249 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entities.rs` (+9 -7) ➕ `crates/horizon-client/src/entities/fluids.rs` (+216 -0) 📝 `crates/horizon-client/src/game.rs` (+7 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+1 -1) 📝 `crates/horizon-client/src/motion.rs` (+1 -1) 📝 `crates/horizon-client/src/motion/fluids.rs` (+6 -5) 📝 `tools/test_entity_fluid_parity.py` (+9 -0) </details> ### 📄 Description > 🤖 Opened by rdbt's AI agent (Codex, gpt-6.1-sol), posting through rdbtCVS. ## What and why Fixes #1956. Dropped items now follow water currents, restoring water collection for sugar cane and bamboo farms. Item ticks sample their deflated bounding box and apply the existing shared fluid-current helpers before movement and again after movement, including vanilla's fluid-depth threshold for buoyancy. Both server simulation and client item ticks use this path. Adds a prepared-resource regression test for stationary items in still water, downstream transport, and the two pushes' order. Extends `entity_fluid` parity inputs with item-sized boxes at surface/depth and cell boundaries, zero/directional/falling currents, and repeated updates. ## Vanilla reference Minecraft 26.3 `ItemEntity.tick` (queried with `tools/rea_vanilla.py`), `Entity.baseTick`, `Entity.updateFluidInteraction`, and `Entity.getFluidInteractionBox` (checked against shipped bytecode). Reuses Horizon's parity-covered `EntityFluidInteraction` accumulation and current application, fluid height, and flow helpers. ## Self-check The focused `items_follow_flowing_water_but_still_water_has_no_horizontal_push` test passed with prepared resources present. Full quick validation passed; parity is left to CI as requested. Live game sessions were not run. **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 93e3096e0, 5 min 50 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +188 −9 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (2 s) | | Python tests | ✅ 287 passed (27 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (1 min 59 s) | | tests: horizon-client | ✅ 1256 passed (2 min 54 s) | | doc tests | ✅ 0 passed (4 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 113 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 101 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:12 +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#3913
No description provided.