[PR #4630] [MERGED] Bounce primed TNT when a slime piston hits it #5738

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4630
Author: @WooCaash
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/4550-tnt-slime-bounce


📝 Commits (3)

  • d2839ff Bounce primed TNT when a slime piston hits it.
  • 0c1b92c Fix TNT bounce unit test attributes after a bad insert.
  • 88e36f9 Retrigger verify after a flaky Mojang lookup in horizon-server lists.

📊 Changes

2 files changed (+40 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/piston_push.rs (+21 -0)
📝 crates/horizon-client/src/game/tnt.rs (+19 -0)

📄 Description

🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally.

What and why

Fixes #4550. A slime piston's causeBounce already launched players, mobs, items, boats, carts and armour stands. Primed TNT was missing from that list, so TNT on slime stayed put when a piston fired under the slime.

Add Target::Tnt, include primed TNT in the push search, apply bounce_velocity, and clear on_ground so the next tick does not cancel the launch with ground friction.

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

PistonMovingBlockEntity.moveCollidedEntities / causeBounce — slime sets velocity along the movement axis for every entity in the search area, including PrimedTnt.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on MacBook-Air-ukasz, against upstream/main at b9f756eba, 1 min 8 s)

Check Result
Scope ✅ 2 files, +40 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 481 passed (30 s)
rustfmt ✅ (4 s)
clippy ✅ (18 s)
tests: horizon-client ✅ 1094 passed (14 s)
doc tests ✅ 0 passed (1 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)

🔄 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/4630 **Author:** [@WooCaash](https://github.com/WooCaash) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/4550-tnt-slime-bounce` --- ### 📝 Commits (3) - [`d2839ff`](https://github.com/horizon-rust/horizon/commit/d2839ff264e0019988eb3bc9b72ab8fd74eaccfc) Bounce primed TNT when a slime piston hits it. - [`0c1b92c`](https://github.com/horizon-rust/horizon/commit/0c1b92ce829c9b4412d1aca45f5e131b18ece3b9) Fix TNT bounce unit test attributes after a bad insert. - [`88e36f9`](https://github.com/horizon-rust/horizon/commit/88e36f9220ab7c347f57bd1939095548b31fe41f) Retrigger verify after a flaky Mojang lookup in horizon-server lists. ### 📊 Changes **2 files changed** (+40 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/piston_push.rs` (+21 -0) 📝 `crates/horizon-client/src/game/tnt.rs` (+19 -0) </details> ### 📄 Description > 🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally. ## What and why Fixes #4550. A slime piston's `causeBounce` already launched players, mobs, items, boats, carts and armour stands. Primed TNT was missing from that list, so TNT on slime stayed put when a piston fired under the slime. Add `Target::Tnt`, include primed TNT in the push search, apply `bounce_velocity`, and clear `on_ground` so the next tick does not cancel the launch with ground friction. ## 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 `PistonMovingBlockEntity.moveCollidedEntities` / `causeBounce` — slime sets velocity along the movement axis for every entity in the search area, including `PrimedTnt`. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on MacBook-Air-ukasz, against upstream/main at b9f756eba, 1 min 8 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +40 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 481 passed (30 s) | | rustfmt | ✅ (4 s) | | clippy | ✅ (18 s) | | tests: horizon-client | ✅ 1094 passed (14 s) | | doc tests | ✅ 0 passed (1 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) | --- <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:39 +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#5738
No description provided.