[PR #2261] [MERGED] Give Oozing, Infested, Weaving and Wind Charged their effects #4153

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

📋 Pull Request Information

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

Base: main ← Head: fix/death-and-hurt-effects


📝 Commits (6)

  • 70868f3 Give Oozing, Infested, Weaving and Wind Charged their effects
  • 462787a Keep the Infested event when a mob is hit by a player or another mob
  • d3b28ed Merge main into fix/death-and-hurt-effects
  • 36f6ab9 Infested, Weaving and Wind Charged draw from the bearer's random
  • 32a7a4c Merge origin/main into fix/death-and-hurt-effects
  • fec49b4 Merge origin/main into fix/death-and-hurt-effects

📊 Changes

5 files changed (+246 additions, -20 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+15 -6)
📝 crates/horizon-client/src/game/combat.rs (+4 -0)
📝 crates/horizon-client/src/game/creatures.rs (+47 -10)
📝 crates/horizon-client/src/game/potions.rs (+173 -4)
📝 crates/horizon-client/src/mobs.rs (+7 -0)

📄 Description

What and why

Oozing, Infested, Weaving and Wind Charged could be applied (potions, /effect) but did nothing. Now:

  • Oozing: when the bearer dies, two size 2 slimes appear half a block up, fewer when slimes nearby already fill max_entity_cramming.
  • Weaving: when the bearer dies, two or three cobwebs are placed in free spaces with a solid floor within one block (15 random picks). For mobs this needs mob_griefing; players always.
  • Wind Charged: when the bearer dies, a wind burst of radius 3 to 5 at half its height, pushing players and mobs and triggering doors, buttons and the like.
  • Infested: when the bearer is hurt, a 10% chance of one or two silverfish thrown along its look direction. Works for mobs (new MobEvent::Infested) and for the player (from the damage the combat tracker records, so it covers host and LAN guests).

Mobs run the death effects when their body is removed after the death animation, like vanilla's remove(KILLED). For players they run at the moment the dead player's effects are cleared, which is up to 20 ticks earlier than vanilla (the player is removed after the death animation, or on respawn).

Known gaps: the burst plays the wind charge sound instead of the breeze one, since wind_burst picks the sound itself; the random numbers come from the level random, not the bearer's own random; an Infested player whose damage is fully soaked by absorption hearts does not roll (the tracker records no damage then).

Vanilla reference

  • OozingMobEffect.onMobRemoved, numberOfSlimesToSpawn, spawnSlimeOffspring
  • WeavingMobEffect.onMobRemoved, spawnCobwebsRandomlyAround
  • WindChargedMobEffect.onMobRemoved; ServerExplosion.canTriggerBlocks and shouldAffectBlocklikeEntities
  • InfestedMobEffect.onMobHurt, spawnSilverfish
  • LivingEntity.remove and triggerOnDeathMobEffects, LivingEntity.hurtServer (calls onMobHurt)
  • MobEffects (counts and chances)

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/2261 **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/death-and-hurt-effects` --- ### 📝 Commits (6) - [`70868f3`](https://github.com/horizon-rust/horizon/commit/70868f32087fda64a976ff027af6658e6725f69c) Give Oozing, Infested, Weaving and Wind Charged their effects - [`462787a`](https://github.com/horizon-rust/horizon/commit/462787aee13d6fc6c7c9c7d50ceaac8e993fe7a9) Keep the Infested event when a mob is hit by a player or another mob - [`d3b28ed`](https://github.com/horizon-rust/horizon/commit/d3b28edfb6dabee1083575af228872ebaafe8388) Merge main into fix/death-and-hurt-effects - [`36f6ab9`](https://github.com/horizon-rust/horizon/commit/36f6ab9839726abd262b53175130ac11d5c3fdee) Infested, Weaving and Wind Charged draw from the bearer's random - [`32a7a4c`](https://github.com/horizon-rust/horizon/commit/32a7a4c7307d9b8135114ca39849b4a691e5a06c) Merge origin/main into fix/death-and-hurt-effects - [`fec49b4`](https://github.com/horizon-rust/horizon/commit/fec49b4482b42958e2b1736f9f21371bba63816b) Merge origin/main into fix/death-and-hurt-effects ### 📊 Changes **5 files changed** (+246 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+15 -6) 📝 `crates/horizon-client/src/game/combat.rs` (+4 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+47 -10) 📝 `crates/horizon-client/src/game/potions.rs` (+173 -4) 📝 `crates/horizon-client/src/mobs.rs` (+7 -0) </details> ### 📄 Description ## What and why Oozing, Infested, Weaving and Wind Charged could be applied (potions, `/effect`) but did nothing. Now: - **Oozing**: when the bearer dies, two size 2 slimes appear half a block up, fewer when slimes nearby already fill `max_entity_cramming`. - **Weaving**: when the bearer dies, two or three cobwebs are placed in free spaces with a solid floor within one block (15 random picks). For mobs this needs `mob_griefing`; players always. - **Wind Charged**: when the bearer dies, a wind burst of radius 3 to 5 at half its height, pushing players and mobs and triggering doors, buttons and the like. - **Infested**: when the bearer is hurt, a 10% chance of one or two silverfish thrown along its look direction. Works for mobs (new `MobEvent::Infested`) and for the player (from the damage the combat tracker records, so it covers host and LAN guests). Mobs run the death effects when their body is removed after the death animation, like vanilla's `remove(KILLED)`. For players they run at the moment the dead player's effects are cleared, which is up to 20 ticks earlier than vanilla (the player is removed after the death animation, or on respawn). Known gaps: the burst plays the wind charge sound instead of the breeze one, since `wind_burst` picks the sound itself; the random numbers come from the level random, not the bearer's own random; an Infested player whose damage is fully soaked by absorption hearts does not roll (the tracker records no damage then). ## Vanilla reference - `OozingMobEffect.onMobRemoved`, `numberOfSlimesToSpawn`, `spawnSlimeOffspring` - `WeavingMobEffect.onMobRemoved`, `spawnCobwebsRandomlyAround` - `WindChargedMobEffect.onMobRemoved`; `ServerExplosion.canTriggerBlocks` and `shouldAffectBlocklikeEntities` - `InfestedMobEffect.onMobHurt`, `spawnSilverfish` - `LivingEntity.remove` and `triggerOnDeathMobEffects`, `LivingEntity.hurtServer` (calls `onMobHurt`) - `MobEffects` (counts and chances) ## 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:15:03 +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#4153
No description provided.