[PR #4056] [MERGED] Hurt mobs standing in a lit campfire #5386

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4056
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: fix/issue-4037-armadillo-campfire


📝 Commits (2)

  • e934272 Hurt mobs standing in a lit campfire (#4037)
  • 084394a Keep campfire damage from making mobs panic

📊 Changes

6 files changed (+32 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/commands/world_cmds.rs (+2 -1)
📝 crates/horizon-client/src/game/creatures.rs (+1 -0)
📝 crates/horizon-client/src/mobs.rs (+5 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+12 -0)
📝 crates/horizon-client/src/mobs/armadillo.rs (+11 -0)
📝 crates/horizon-client/src/mobs/gear.rs (+1 -0)

📄 Description

🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL personally.

Fixes #4037

Mobs never took damage from a lit campfire (only the player did). effects_from_blocks in mobs/ai.rs now applies CampfireBlock.entityInside: a lit campfire deals 1 (soul campfire 2) with a new DamageKind::Campfire (minecraft:campfire: fire, no knockback, armour-protected, panic cause for armadillos). /damage campfire now uses it too. Fire-immune mobs are unaffected via the existing fire check.

Tested: cargo fmt --check, cargo clippy -p horizon-client --lib --bins --tests -D warnings, cargo test -p horizon-client --lib armadillo (unit test for the damage kind's tags).
Not tested: in-game run or parity harnesses (no vanilla data in .local/ here), and a world-level test of a mob standing on a campfire.


🔄 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/4056 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/issue-4037-armadillo-campfire` --- ### 📝 Commits (2) - [`e934272`](https://github.com/horizon-rust/horizon/commit/e93427276f634a7ae534de7e2037f2c612cefc72) Hurt mobs standing in a lit campfire (#4037) - [`084394a`](https://github.com/horizon-rust/horizon/commit/084394a84990b18d6782b928e0869200352f8ff4) Keep campfire damage from making mobs panic ### 📊 Changes **6 files changed** (+32 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands/world_cmds.rs` (+2 -1) 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs.rs` (+5 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+12 -0) 📝 `crates/horizon-client/src/mobs/armadillo.rs` (+11 -0) 📝 `crates/horizon-client/src/mobs/gear.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL personally. Fixes #4037 Mobs never took damage from a lit campfire (only the player did). `effects_from_blocks` in `mobs/ai.rs` now applies `CampfireBlock.entityInside`: a lit campfire deals 1 (soul campfire 2) with a new `DamageKind::Campfire` (`minecraft:campfire`: fire, no knockback, armour-protected, panic cause for armadillos). `/damage campfire` now uses it too. Fire-immune mobs are unaffected via the existing fire check. Tested: `cargo fmt --check`, `cargo clippy -p horizon-client --lib --bins --tests -D warnings`, `cargo test -p horizon-client --lib armadillo` (unit test for the damage kind's tags). Not tested: in-game run or parity harnesses (no vanilla data in `.local/` here), and a world-level test of a mob standing on a campfire. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:14 +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#5386
No description provided.