[PR #1834] [MERGED] Lava cauldrons burn the player inside them #3801

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

📋 Pull Request Information

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

Base: main ← Head: fix/lava-cauldron-player


📝 Commits (2)

  • 4bfa496 Lava cauldrons burn the player inside them
  • 21d8b07 Merge origin/main into fix/lava-cauldron-player

📊 Changes

1 file changed (+80 additions, -15 deletions)

View changed files

📝 crates/horizon-client/src/motion.rs (+80 -15)

📄 Description

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

What and why

Fixes #1320.

A player standing in a lava cauldron took no damage and didn't burn, in either singleplayer mode. The player's
inside-block sweep (MotionWorld::check_inside_blocks) skipped lava_cauldron outright, with water and powder snow
cauldrons, end portals and tripwires, because their entity-inside shape isn't the whole block.

  • The sweep now tests the player against the lava cauldron's entity-inside shape the way it already tests powder
    snow: collidedWithShapeMovingFrom over the cauldron's collision shape plus its lava,
    Block.column(12, 4, 15) (x and z 2–14, y 4–15 sixteenths).
  • Inside it, lava_cauldron_inside applies what LavaCauldronBlock.entityInside does: CLEAR_FREEZE, LAVA_IGNITE
    (Entity.lavaIgnite, 15 seconds through ignite_for_ticks(300)) and then Entity.lavaHurt (lava, 4). It sits
    with cactus and campfires in the part of the dispatch that also runs for a server's player
    (server_block_damage), so both singleplayer modes get it.

Water and powder snow cauldrons stay skipped; #1330 (water cauldrons don't extinguish) can follow on the same
shape test.

Vanilla reference

  • LavaCauldronBlock.getEntityInsideCollisionShape → FILLED_SHAPE = Shapes.or(AbstractCauldronBlock.SHAPE, SHAPE_INSIDE), SHAPE_INSIDE = Block.column(12, 4, 15)
  • LavaCauldronBlock.entityInside: apply(CLEAR_FREEZE), apply(LAVA_IGNITE), runAfter(LAVA_IGNITE, Entity::lavaHurt)
  • InsideBlockEffectType: CLEAR_FREEZE → Entity.clearFreeze (setTicksFrozen(0)), LAVA_IGNITE →
    Entity.lavaIgnite (igniteForSeconds(15) unless fire immune)
  • Entity.lavaHurt: unless fire immune, hurtServer(lava, 4)
  • Entity.checkInsideBlocks: a shape that isn't the full block counts only when collidedWithShapeMovingFrom

Checked against the 26.3 client jar's bytecode (javap).

New test motion::tests::a_lava_cauldron_burns_the_player_inside_it: a player on the floor of a lava cauldron in a
test scene is hurt, set on fire and unfrozen after one tick; one two blocks away is untouched. Like the other
motion.rs scene tests it needs prepared resources (and honours HORIZON_TEST_RESOURCES); run here against the
launcher's prepared v0.2.55 resources it passes, and fails without the effect.

Self-check

pr_ready (tools/pr_ready.py on debian, against origin/main at 6c4d1d6cb, 4 min 6 s)

Check Result
Scope ✅ 1 files, +80 −14
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (15 s)
clippy ✅ (54 s)
tests: horizon-client ❌ 1099 passed, 1 failed (2 min 48 s)
doc tests ✅ 0 passed (5 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (no vanilla data here): 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)

The one failing test, packs::cache::tests::zip_content_and_failed_build_invalidate, fails the same way on main on this machine without this change (packs/cache.rs:561, also noted in #1823); it doesn't touch anything this PR changes.

Not checked in game.

🤖 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/1834 **Author:** [@vlesmentie](https://github.com/vlesmentie) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lava-cauldron-player` --- ### 📝 Commits (2) - [`4bfa496`](https://github.com/horizon-rust/horizon/commit/4bfa496173109366e9e37bf1d4194f7844fb389c) Lava cauldrons burn the player inside them - [`21d8b07`](https://github.com/horizon-rust/horizon/commit/21d8b0702c13b51b2aacde1a576bba0de2cce59d) Merge origin/main into fix/lava-cauldron-player ### 📊 Changes **1 file changed** (+80 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/motion.rs` (+80 -15) </details> ### 📄 Description > 🤖 Opened by vlesmentie's AI agent (Claude Code, Claude Opus 5.5), not by vlesmentie themselves. ## What and why Fixes #1320. A player standing in a lava cauldron took no damage and didn't burn, in either singleplayer mode. The player's inside-block sweep (`MotionWorld::check_inside_blocks`) skipped `lava_cauldron` outright, with water and powder snow cauldrons, end portals and tripwires, because their entity-inside shape isn't the whole block. - The sweep now tests the player against the lava cauldron's entity-inside shape the way it already tests powder snow: `collidedWithShapeMovingFrom` over the cauldron's collision shape plus its lava, `Block.column(12, 4, 15)` (x and z 2–14, y 4–15 sixteenths). - Inside it, `lava_cauldron_inside` applies what `LavaCauldronBlock.entityInside` does: CLEAR_FREEZE, LAVA_IGNITE (`Entity.lavaIgnite`, 15 seconds through `ignite_for_ticks(300)`) and then `Entity.lavaHurt` (lava, 4). It sits with cactus and campfires in the part of the dispatch that also runs for a server's player (`server_block_damage`), so both singleplayer modes get it. Water and powder snow cauldrons stay skipped; #1330 (water cauldrons don't extinguish) can follow on the same shape test. ## Vanilla reference - `LavaCauldronBlock.getEntityInsideCollisionShape` → `FILLED_SHAPE = Shapes.or(AbstractCauldronBlock.SHAPE, SHAPE_INSIDE)`, `SHAPE_INSIDE = Block.column(12, 4, 15)` - `LavaCauldronBlock.entityInside`: `apply(CLEAR_FREEZE)`, `apply(LAVA_IGNITE)`, `runAfter(LAVA_IGNITE, Entity::lavaHurt)` - `InsideBlockEffectType`: CLEAR_FREEZE → `Entity.clearFreeze` (`setTicksFrozen(0)`), LAVA_IGNITE → `Entity.lavaIgnite` (`igniteForSeconds(15)` unless fire immune) - `Entity.lavaHurt`: unless fire immune, `hurtServer(lava, 4)` - `Entity.checkInsideBlocks`: a shape that isn't the full block counts only when `collidedWithShapeMovingFrom` Checked against the 26.3 client jar's bytecode (`javap`). New test `motion::tests::a_lava_cauldron_burns_the_player_inside_it`: a player on the floor of a lava cauldron in a test scene is hurt, set on fire and unfrozen after one tick; one two blocks away is untouched. Like the other `motion.rs` scene tests it needs prepared resources (and honours `HORIZON_TEST_RESOURCES`); run here against the launcher's prepared v0.2.55 resources it passes, and fails without the effect. ## Self-check **pr_ready** (`tools/pr_ready.py` on debian, against origin/main at 6c4d1d6cb, 4 min 6 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +80 −14 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (15 s) | | clippy | ✅ (54 s) | | tests: horizon-client | ❌ 1099 passed, 1 failed (2 min 48 s) | | doc tests | ✅ 0 passed (5 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (no vanilla data here): 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) | The one failing test, `packs::cache::tests::zip_content_and_failed_build_invalidate`, fails the same way on `main` on this machine without this change (`packs/cache.rs:561`, also noted in #1823); it doesn't touch anything this PR changes. Not checked in game. 🤖 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 04:12:24 +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#3801
No description provided.