[GH-ISSUE #6889] Primed TNT ignores explosion_power (always 4.0) #2241

Open
opened 2026-11-02 15:53:16 +07:00 by bsakaguchi · 12 comments
Owner

Originally created by @ClickingMaster on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6889

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

Primed TNT ignores explosion_power.

In 26.3 PrimedTnt saves/reads explosion_power (float, default 4.0, clamped to 0..128; PrimedTnt.readAdditionalSaveData) and explodes with it in tick. Horizon's Game::tick_tnt (crates/horizon-client/src/game/tnt.rs) always calls server_explode(center, 4.0, ...), so /summon tnt ~ ~ ~ {fuse:20,explosion_power:10f} explodes like ordinary TNT. The tag is kept in the raw save data, only never read.

Expected: the explosion radius follows explosion_power.

Originally created by @ClickingMaster on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6889 > 🤖 Filed by ClickingMaster's AI agent (Claude Code, Claude Sonnet 5.5), not by ClickingMaster personally. **Primed TNT ignores `explosion_power`.** In 26.3 `PrimedTnt` saves/reads `explosion_power` (float, default 4.0, clamped to 0..128; `PrimedTnt.readAdditionalSaveData`) and explodes with it in `tick`. Horizon's `Game::tick_tnt` (`crates/horizon-client/src/game/tnt.rs`) always calls `server_explode(center, 4.0, ...)`, so `/summon tnt ~ ~ ~ {fuse:20,explosion_power:10f}` explodes like ordinary TNT. The tag is kept in the raw save data, only never read. Expected: the explosion radius follows `explosion_power`.
Author
Owner

@ClickingMaster commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6571986686 --> @ClickingMaster commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

🤖 Claims: refused, You hold 8 open issues: finish or /unclaim one first. (asked by @ClickingMaster)

<!-- gh-comment-id:6571989188 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): 🤖 Claims: refused, You hold 8 open issues: finish or `/unclaim` one first. (asked by @ClickingMaster)
Author
Owner

@glitchsnake commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6572522834 --> @glitchsnake commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

@glitchsnake commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6572609304 --> @glitchsnake commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

🤖 Claims: refused, You already hold this issue. (asked by @glitchsnake)

<!-- gh-comment-id:6572611805 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): 🤖 Claims: refused, You already hold this issue. (asked by @glitchsnake)
Author
Owner

@glitchsnake commented on GitHub (Nov 2, 2026):

🤖 Agent: /unclaim

<!-- gh-comment-id:6572994943 --> @glitchsnake commented on GitHub (Nov 2, 2026): 🤖 Agent: /unclaim
Author
Owner

@breachato commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6573120627 --> @breachato commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

@breachato commented on GitHub (Nov 2, 2026):

🤖 Agent: /unclaim

<!-- gh-comment-id:6573129578 --> @breachato commented on GitHub (Nov 2, 2026): 🤖 Agent: /unclaim
Author
Owner

@MSedgeMC commented on GitHub (Nov 2, 2026):

Fixed on current main: entity_nbt.rs:2056 reads explosion_power (PrimedTnt.readAdditionalSaveData, 4 by default, clamped to 0..128) into Tnt::power, entity_nbt.rs:2088 writes it back, and game/tnt.rs:281 explodes with t.power instead of a constant 4.0 (server_explode(center, power, ...)), with tnt.rs:29 documenting the field. PR #6917 is closed rather than merged, so the change is in through another route; /summon minecraft:tnt ~ ~ ~ {fuse:20,explosion_power:10f} now explodes with 10.

<!-- gh-comment-id:6575453833 --> @MSedgeMC commented on GitHub (Nov 2, 2026): Fixed on current main: `entity_nbt.rs:2056` reads `explosion_power` (`PrimedTnt.readAdditionalSaveData`, 4 by default, clamped to 0..128) into `Tnt::power`, `entity_nbt.rs:2088` writes it back, and `game/tnt.rs:281` explodes with `t.power` instead of a constant 4.0 (`server_explode(center, power, ...)`), with `tnt.rs:29` documenting the field. PR #6917 is closed rather than merged, so the change is in through another route; `/summon minecraft:tnt ~ ~ ~ {fuse:20,explosion_power:10f}` now explodes with 10.
Author
Owner

@WhyFovius commented on GitHub (Nov 2, 2026):

/claim

<!-- gh-comment-id:6583671940 --> @WhyFovius commented on GitHub (Nov 2, 2026): /claim
Author
Owner

@WhyFovius commented on GitHub (Nov 2, 2026):

/unclaim

<!-- gh-comment-id:6583812289 --> @WhyFovius commented on GitHub (Nov 2, 2026): /unclaim
Author
Owner

@WhyFovius commented on GitHub (Nov 2, 2026):

🤖 Agent: Confirmed on current main (3527331d1): entity_nbt.rs reads and writes PrimedTnt's explosion_power (4 by default), so this is fixed; unclaiming. Nothing left to do here apart from closing.

<!-- gh-comment-id:6583812939 --> @WhyFovius commented on GitHub (Nov 2, 2026): 🤖 Agent: Confirmed on current main (3527331d1): entity_nbt.rs reads and writes PrimedTnt's explosion_power (4 by default), so this is fixed; unclaiming. Nothing left to do here apart from closing.
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#2241
No description provided.