[PR #6131] [CLOSED] Bubble columns lift and drag primed TNT #6670

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6131
Author: @breachato
Created: 11/1/2026
Status: ❌ Closed

Base: main ← Head: fix/6008-tnt-bubble-columns


📝 Commits (1)

  • 81311eb Bubble columns lift and drag primed TNT

📊 Changes

1 file changed (+76 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/tnt.rs (+76 -0)

📄 Description

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

What and why

Fixes #6008.

Primed TNT sank through soul sand bubble columns instead of being lifted.

Vanilla's PrimedTnt.tick is handlePortal, applyGravity, move(SELF, deltaMovement), applyEffectsFromBlocks(), then the getAirDrag() scale and the ground bounce (26.3 bytecode). applyEffectsFromBlocks is where BubbleColumnBlock.entityInside calls onInsideBubbleColumn / onAboveBubbleColumn. Horizon's PrimedTnt::tick went straight from the move to the 0.98 drag.

It now runs falling_block::apply_effects_from_blocks (the same block-effect walk falling blocks use, with motion::bubble_column_at) between the move and the drag, recording the move the way Entity.move does.

Only bubble columns are handled here. applyEffectsFromBlocks would also make cobwebs slow the TNT (makeStuckInBlock); that needs a stuck multiplier on PrimedTnt and is left for a separate change.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

  • net.minecraft.world.entity.item.PrimedTnt.tick(): the order above.
  • net.minecraft.world.level.block.BubbleColumnBlock.entityInside, Entity.onInsideBubbleColumn / onAboveBubbleColumn (already followed by motion::BubbleColumn::push).

Test: game::tnt::tests::a_soul_sand_bubble_column_lifts_primed_tnt builds a soul sand column and checks one tick lifts the TNT by min(0.7, -0.04 + 0.06) * 0.98. Like the neighbouring primed_tnt_follows_water_currents_after_moving, it needs the prepared vanilla data (.local/horizon-client) and returns early without it, which is the case on this machine: it compiled and passed here only trivially.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on DESKTOP-G0M27UC, against upstream/main at 6f30860d0, 14 min 56 s)

Check Result
Scope ✅ 1 files, +76 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 527 passed (3 min 26 s)
rustfmt ✅ (22 s)
clippy ✅ (1 min 27 s)
tests: horizon-client ✅ 1721 passed (9 min 31 s)
doc tests ✅ 0 passed (5 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
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/6131 **Author:** [@breachato](https://github.com/breachato) **Created:** 11/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/6008-tnt-bubble-columns` --- ### 📝 Commits (1) - [`81311eb`](https://github.com/horizon-rust/horizon/commit/81311eb4519fb881a752758863dd7d5518d3199b) Bubble columns lift and drag primed TNT ### 📊 Changes **1 file changed** (+76 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/tnt.rs` (+76 -0) </details> ### 📄 Description > 🤖 Opened by breachato's AI agent (Claude Code, Claude Opus 5.5), not by breachato personally. ## What and why Fixes #6008. Primed TNT sank through soul sand bubble columns instead of being lifted. Vanilla's `PrimedTnt.tick` is `handlePortal`, `applyGravity`, `move(SELF, deltaMovement)`, **`applyEffectsFromBlocks()`**, then the `getAirDrag()` scale and the ground bounce (26.3 bytecode). `applyEffectsFromBlocks` is where `BubbleColumnBlock.entityInside` calls `onInsideBubbleColumn` / `onAboveBubbleColumn`. Horizon's `PrimedTnt::tick` went straight from the move to the 0.98 drag. It now runs `falling_block::apply_effects_from_blocks` (the same block-effect walk falling blocks use, with `motion::bubble_column_at`) between the move and the drag, recording the move the way `Entity.move` does. Only bubble columns are handled here. `applyEffectsFromBlocks` would also make cobwebs slow the TNT (`makeStuckInBlock`); that needs a stuck multiplier on `PrimedTnt` and is left for a separate change. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference - `net.minecraft.world.entity.item.PrimedTnt.tick()`: the order above. - `net.minecraft.world.level.block.BubbleColumnBlock.entityInside`, `Entity.onInsideBubbleColumn` / `onAboveBubbleColumn` (already followed by `motion::BubbleColumn::push`). Test: `game::tnt::tests::a_soul_sand_bubble_column_lifts_primed_tnt` builds a soul sand column and checks one tick lifts the TNT by `min(0.7, -0.04 + 0.06) * 0.98`. Like the neighbouring `primed_tnt_follows_water_currents_after_moving`, it needs the prepared vanilla data (`.local/horizon-client`) and returns early without it, which is the case on this machine: it compiled and passed here only trivially. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on DESKTOP-G0M27UC, against upstream/main at 6f30860d0, 14 min 56 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +76 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 527 passed (3 min 26 s) | | rustfmt | ✅ (22 s) | | clippy | ✅ (1 min 27 s) | | tests: horizon-client | ✅ 1721 passed (9 min 31 s) | | doc tests | ✅ 0 passed (5 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | 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 06:24:41 +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#6670
No description provided.