[PR #6924] [MERGED] Ender pearls, armor stands and falling blocks at the top of a bubble column send its surface particles #7198

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6924
Author: @Akirabane
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/6908-bubble-particles


📝 Commits (4)

  • 3ae5bcc Ender pearls, armor stands and falling blocks at the top of a bubble column send its surface particles
  • b8a37a5 Merge origin/main
  • c89ba07 Merge origin/main
  • 51e63a4 Merge origin/main

📊 Changes

4 files changed (+61 additions, -13 deletions)

View changed files

📝 crates/horizon-client/src/falling_block.rs (+36 -10)
📝 crates/horizon-client/src/game.rs (+5 -0)
📝 crates/horizon-client/src/game/armor_stands.rs (+14 -2)
📝 crates/horizon-client/src/game/creatures.rs (+6 -1)

📄 Description

🤖 Opened by both Akirabane's AI agent (Claude Code), and Akirabane Himself after his review.

Fixes #6908

What was wrong

BubbleColumnBlock.entityInside calls Entity.onAboveBubbleColumn for an entity at the surface of a column, and Entity.handleOnAboveBubbleColumn ends in Entity.sendBubbleColumnParticles: two SPLASH and two BUBBLE particles over the column block (read with javap on the 26.3 server jar). ThrownEnderpearl.onAboveBubbleColumn calls it; ArmorStand and FallingBlockEntity do not override it. Horizon lifted or dragged all three, and sent the particles only for mobs, items, arrows (#6474) and primed TNT (#6634).

What changed

  • game/creatures.rs: the ender pearl's push goes through motion::bubble_column_push_over and the surfaces it reports are drawn after the projectile loop with Game::bubble_column_particles.
  • game/armor_stands.rs: the same for an armor stand's push.
  • falling_block.rs, game.rs: apply_effects_from_blocks also returns the column blocks the falling block is at the top of (surfaces), and the game draws them.

Game::bubble_column_particles is the helper #6474 added; it also sends the particles to the LAN guests.

How it was checked

Unit test: bubble_columns_lift_or_drag_a_falling_block now also checks that only the surface block of the column is reported, and none inside it.

In the game (horizon-ctl launch --offscreen, creative world, a glass shaft with a soul sand bubble column), reading the splash and bubble counters of horizon-ctl status each second (8 readings) with one entity in the column, on a build of origin/main and on this branch:

Entity Before (splash / bubble, last reading) After (splash / bubble gained between the first and last reading)
nothing 0 / 0 0 / 0
ender_pearl 0 / 0 +92 / +122
armor_stand 0 / 0 +172 / +172
falling_block (sand) 0 / 0 +254 / +254

Self-check

tools/pr_ready.py --quick --base origin/main:

Check Result
Scope 4 files, +61 −13
Cargo.lock unchanged
rustfmt, clippy ✅
tests: horizon-client, horizon-client-lib 644 passed, 1 failed: pearl_tests::a_pearl_feels_the_water_its_box_touches fails the same way on origin/main without this change (a pearl above the water slowed as in water)
mod API up to date ❌ new_hook_placeholder_is_reported_then_filled compares LF with CRLF text on my Windows checkout, untouched here
Python tests 4 errors in the launcher/ledger setup of my machine (a global tests package, no launcher build), untouched here
Parity not run (--quick): the CI parity job picks the affected harnesses

Label: a fix, no feature label.


🔄 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/6924 **Author:** [@Akirabane](https://github.com/Akirabane) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/6908-bubble-particles` --- ### 📝 Commits (4) - [`3ae5bcc`](https://github.com/horizon-rust/horizon/commit/3ae5bccf37a7e0f3b5e0cf8912bbe0609065f492) Ender pearls, armor stands and falling blocks at the top of a bubble column send its surface particles - [`b8a37a5`](https://github.com/horizon-rust/horizon/commit/b8a37a57c6c68f906c608cb26e1716f559033f43) Merge origin/main - [`c89ba07`](https://github.com/horizon-rust/horizon/commit/c89ba071cedc48cbe3ce3c13292b028c7a7e10c5) Merge origin/main - [`51e63a4`](https://github.com/horizon-rust/horizon/commit/51e63a4f8e8c6c4c7085cde40eef3fb5d82681cb) Merge origin/main ### 📊 Changes **4 files changed** (+61 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/falling_block.rs` (+36 -10) 📝 `crates/horizon-client/src/game.rs` (+5 -0) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+14 -2) 📝 `crates/horizon-client/src/game/creatures.rs` (+6 -1) </details> ### 📄 Description > 🤖 Opened by both Akirabane's AI agent (Claude Code), and Akirabane Himself after his review. Fixes #6908 ## What was wrong `BubbleColumnBlock.entityInside` calls `Entity.onAboveBubbleColumn` for an entity at the surface of a column, and `Entity.handleOnAboveBubbleColumn` ends in `Entity.sendBubbleColumnParticles`: two `SPLASH` and two `BUBBLE` particles over the column block (read with `javap` on the 26.3 server jar). `ThrownEnderpearl.onAboveBubbleColumn` calls it; `ArmorStand` and `FallingBlockEntity` do not override it. Horizon lifted or dragged all three, and sent the particles only for mobs, items, arrows (#6474) and primed TNT (#6634). ## What changed - `game/creatures.rs`: the ender pearl's push goes through `motion::bubble_column_push_over` and the surfaces it reports are drawn after the projectile loop with `Game::bubble_column_particles`. - `game/armor_stands.rs`: the same for an armor stand's push. - `falling_block.rs`, `game.rs`: `apply_effects_from_blocks` also returns the column blocks the falling block is at the top of (`surfaces`), and the game draws them. `Game::bubble_column_particles` is the helper #6474 added; it also sends the particles to the LAN guests. ## How it was checked Unit test: `bubble_columns_lift_or_drag_a_falling_block` now also checks that only the surface block of the column is reported, and none inside it. In the game (`horizon-ctl launch --offscreen`, creative world, a glass shaft with a soul sand bubble column), reading the `splash` and `bubble` counters of `horizon-ctl status` each second (8 readings) with one entity in the column, on a build of `origin/main` and on this branch: | Entity | Before (splash / bubble, last reading) | After (splash / bubble gained between the first and last reading) | | --- | --- | --- | | nothing | 0 / 0 | 0 / 0 | | `ender_pearl` | 0 / 0 | +92 / +122 | | `armor_stand` | 0 / 0 | +172 / +172 | | `falling_block` (sand) | 0 / 0 | +254 / +254 | ## Self-check `tools/pr_ready.py --quick --base origin/main`: | Check | Result | | --- | --- | | Scope | 4 files, +61 −13 | | Cargo.lock | unchanged | | rustfmt, clippy | ✅ | | tests: horizon-client, horizon-client-lib | 644 passed, 1 failed: `pearl_tests::a_pearl_feels_the_water_its_box_touches` fails the same way on `origin/main` without this change (a pearl above the water slowed as in water) | | mod API up to date | ❌ `new_hook_placeholder_is_reported_then_filled` compares LF with CRLF text on my Windows checkout, untouched here | | Python tests | 4 errors in the launcher/ledger setup of my machine (a global `tests` package, no launcher build), untouched here | | Parity | not run (`--quick`): the CI parity job picks the affected harnesses | Label: a fix, no `feature` label. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:35:34 +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#7198
No description provided.