[PR #5252] [MERGED] fix(mobs): a sulfur cube with a block shrugs off its whole immune tag #6165

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5252
Author: @reservedbytes
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: fix/sulfur-cube-immune-types


📝 Commits (2)

  • 3351ca5 fix(mobs): a sulfur cube with a block shrugs off its whole immune tag
  • 2426dbb Merge main into #5252 (main builds again after #5251)

📊 Changes

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

View changed files

📝 crates/horizon-client/src/mobs/sulfur_cube.rs (+56 -0)

📄 Description

What and why

A sulfur cube carrying a block ignores the damage types in #minecraft:sulfur_cube_with_block_immune_to
Horizon's list missed nine of them that it has kinds for
This adds eight: falling_anvil, falling_block, falling_stalactite, dry_out, spit, stalagmite, sulfur_cube_hot and wind_charge
So a cube with a block was hurt by a falling block, anvil or dripstone, and by /damage with any of the eight
It now shrugs them off as vanilla does
The ninth, fireworks, is left to #4997, which adds it with the rocket's damage source
A unit test hits a cube with a block and one without with each of the eight types, and checks a cube with a block still takes magic
Left as is: on main the shrugged-off hit still pushes the cube when the source has a position, also for the eight's #no_knockback types (stalagmite, dry_out, sulfur_cube_hot)
#5155's no_knockback check covers that

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

SulfurCube.hurtServer returns before LivingEntity.hurtServer for a type in #minecraft:sulfur_cube_with_block_immune_to while the cube has a body item (world/entity/monster/cubemob/SulfurCube.java:244-264)
Data tags/damage_type/sulfur_cube_with_block_immune_to.json lists falling_anvil, falling_block, falling_stalactite, dry_out, spit, stalagmite, sulfur_cube_hot, wind_charge and #minecraft:is_explosion (which has fireworks)

Other projects' code

none

Self-check

Check Result
Scope ✅ 1 files, +56 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 495 passed (56 s)
rustfmt ✅ (8 s)
clippy ✅ (1 min 59 s)
tests: horizon-client ✅ 1343 passed (5 min 12 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/5252 **Author:** [@reservedbytes](https://github.com/reservedbytes) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/sulfur-cube-immune-types` --- ### 📝 Commits (2) - [`3351ca5`](https://github.com/horizon-rust/horizon/commit/3351ca5d4069fcd26ec96be619dd2da6847dd29e) fix(mobs): a sulfur cube with a block shrugs off its whole immune tag - [`2426dbb`](https://github.com/horizon-rust/horizon/commit/2426dbb368261cbf663996c08babc6dfd6463740) Merge main into #5252 (main builds again after #5251) ### 📊 Changes **1 file changed** (+56 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/sulfur_cube.rs` (+56 -0) </details> ### 📄 Description ## What and why A sulfur cube carrying a block ignores the damage types in `#minecraft:sulfur_cube_with_block_immune_to` Horizon's list missed nine of them that it has kinds for This adds eight: `falling_anvil`, `falling_block`, `falling_stalactite`, `dry_out`, `spit`, `stalagmite`, `sulfur_cube_hot` and `wind_charge` So a cube with a block was hurt by a falling block, anvil or dripstone, and by `/damage` with any of the eight It now shrugs them off as vanilla does The ninth, `fireworks`, is left to #4997, which adds it with the rocket's damage source A unit test hits a cube with a block and one without with each of the eight types, and checks a cube with a block still takes `magic` Left as is: on `main` the shrugged-off hit still pushes the cube when the source has a position, also for the eight's `#no_knockback` types (`stalagmite`, `dry_out`, `sulfur_cube_hot`) #5155's `no_knockback` check covers that ## 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 `SulfurCube.hurtServer` returns before `LivingEntity.hurtServer` for a type in `#minecraft:sulfur_cube_with_block_immune_to` while the cube has a body item (`world/entity/monster/cubemob/SulfurCube.java:244-264`) Data `tags/damage_type/sulfur_cube_with_block_immune_to.json` lists `falling_anvil`, `falling_block`, `falling_stalactite`, `dry_out`, `spit`, `stalagmite`, `sulfur_cube_hot`, `wind_charge` and `#minecraft:is_explosion` (which has `fireworks`) ## Other projects' code none ## Self-check | Check | Result | | --- | --- | | Scope | ✅ 1 files, +56 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 495 passed (56 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (1 min 59 s) | | tests: horizon-client | ✅ 1343 passed (5 min 12 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 06:15:16 +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#6165
No description provided.