[PR #2526] [MERGED] Freeze mobs in powder snow and shake frozen mobs and cold striders #4397

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2526
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/mob-freeze-strider-shake


📝 Commits (2)

  • 6887331 Freeze mobs in powder snow and shake frozen mobs and cold striders
  • 5435eb0 Send a cold strider's shiver at index 19

📊 Changes

8 files changed (+116 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/commands/world_cmds.rs (+1 -0)
📝 crates/horizon-client/src/game/creatures.rs (+1 -0)
📝 crates/horizon-client/src/game/lan.rs (+21 -0)
📝 crates/horizon-client/src/game/remote.rs (+16 -0)
📝 crates/horizon-client/src/mobs.rs (+17 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+52 -0)
📝 crates/horizon-client/src/mobs/render.rs (+7 -2)
📝 crates/horizon-client/src/mobs/sulfur_cube.rs (+1 -0)

📄 Description

What and why

Mobs never froze in powder snow, and a cold strider never shook. Now:

  • A mob whose box touches powder snow gains one freeze tick a tick (up to 140); anywhere else it loses two. Mobs that cannot freeze (the freeze_immune_entity_types tag, or any worn piece in freeze_immune_wearables) only melt.
  • A fully frozen mob takes 1 freeze damage every 40 ticks, five times that for strider, blaze and magma cube (freeze_hurts_extra_types). The new Freeze damage kind bypasses armor and does no knockback, as the damage type's tags say.
  • A fully frozen mob shakes, and so does a cold strider (not the plain skeleton, whose own isShaking is only its stray conversion).
  • On a server (single player included) the window gets the data from two entries added to the mob's data: DATA_TICKS_FROZEN (index 7) and the strider's DATA_SUFFOCATING (index 18). They are sent by a small separate function next to mob_meta, and read in the existing SetEntityData handling in remote.rs.

Not done: the small speed slowdown a frozen mob gets (tryAddFrost), and the skeleton turning into a stray.

Vanilla reference

  • Entity.baseTick / LivingEntity.aiStep ("freezing"), InsideBlockEffectType.FREEZE, LivingEntity.canFreeze, LivingEntity.hurtServer (FREEZE_HURTS_EXTRA_TYPES)
  • LivingEntityRenderer.isShaking, StriderRenderer.isShaking, AbstractSkeleton.isShaking, Skeleton.isShaking
  • Strider.DATA_SUFFOCATING

Self-check

cargo check -p horizon-client passes.


🔄 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/2526 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/mob-freeze-strider-shake` --- ### 📝 Commits (2) - [`6887331`](https://github.com/horizon-rust/horizon/commit/688733132d7e105312337bb21cf8a96ee441ba33) Freeze mobs in powder snow and shake frozen mobs and cold striders - [`5435eb0`](https://github.com/horizon-rust/horizon/commit/5435eb0f17d6f655604ba9cec75a6d2a829ad0fa) Send a cold strider's shiver at index 19 ### 📊 Changes **8 files changed** (+116 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands/world_cmds.rs` (+1 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+21 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+16 -0) 📝 `crates/horizon-client/src/mobs.rs` (+17 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+52 -0) 📝 `crates/horizon-client/src/mobs/render.rs` (+7 -2) 📝 `crates/horizon-client/src/mobs/sulfur_cube.rs` (+1 -0) </details> ### 📄 Description ## What and why Mobs never froze in powder snow, and a cold strider never shook. Now: - A mob whose box touches powder snow gains one freeze tick a tick (up to 140); anywhere else it loses two. Mobs that cannot freeze (the `freeze_immune_entity_types` tag, or any worn piece in `freeze_immune_wearables`) only melt. - A fully frozen mob takes 1 freeze damage every 40 ticks, five times that for strider, blaze and magma cube (`freeze_hurts_extra_types`). The new `Freeze` damage kind bypasses armor and does no knockback, as the damage type's tags say. - A fully frozen mob shakes, and so does a cold strider (not the plain skeleton, whose own `isShaking` is only its stray conversion). - On a server (single player included) the window gets the data from two entries added to the mob's data: `DATA_TICKS_FROZEN` (index 7) and the strider's `DATA_SUFFOCATING` (index 18). They are sent by a small separate function next to `mob_meta`, and read in the existing SetEntityData handling in `remote.rs`. Not done: the small speed slowdown a frozen mob gets (`tryAddFrost`), and the skeleton turning into a stray. ## Vanilla reference - `Entity.baseTick` / `LivingEntity.aiStep` ("freezing"), `InsideBlockEffectType.FREEZE`, `LivingEntity.canFreeze`, `LivingEntity.hurtServer` (`FREEZE_HURTS_EXTRA_TYPES`) - `LivingEntityRenderer.isShaking`, `StriderRenderer.isShaking`, `AbstractSkeleton.isShaking`, `Skeleton.isShaking` - `Strider.DATA_SUFFOCATING` ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:52 +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#4397
No description provided.