[PR #2379] [MERGED] Let a sculk catalyst take the experience of mobs killed without a player #4259

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

📋 Pull Request Information

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

Base: main ← Head: fix/sculk-catalyst-nonplayer-kills


📝 Commits (1)

  • 849b5b6 Let a sculk catalyst take the experience of mobs killed without a player

📊 Changes

2 files changed (+14 additions, -9 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+3 -2)
📝 crates/horizon-client/src/mobs/drops.rs (+11 -7)

📄 Description

What and why

A sculk catalyst only charged from mobs a player killed. A zombie that burned, fell or was killed by another mob next to a catalyst left no sculk growth. The catalyst also charged from baby animals killed by a player, which drop no experience.

The catalyst now takes the experience the mob would drop whoever killed it, and only if the mob drops experience at all. The "does this mob drop experience" check (babies drop none, except monsters and hoglins; tadpoles never) is now one shared function used by both the catalyst and the death drops.

Vanilla reference

  • SculkCatalystBlockEntity.CatalystListener.handleGameEvent: experienceWouldDrop = mob.getExperienceReward(...), charged if mob.shouldDropExperience() && experienceWouldDrop > 0, whatever the cause of death.
  • LivingEntity.shouldDropExperience, with the overrides in Monster, Hoglin and Tadpole.
  • LivingEntity.dropExperience: orbs still drop only for a player kill (unchanged).

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/2379 **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/sculk-catalyst-nonplayer-kills` --- ### 📝 Commits (1) - [`849b5b6`](https://github.com/horizon-rust/horizon/commit/849b5b663bbeb3cf04326b5726df1e2e57be38cf) Let a sculk catalyst take the experience of mobs killed without a player ### 📊 Changes **2 files changed** (+14 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+3 -2) 📝 `crates/horizon-client/src/mobs/drops.rs` (+11 -7) </details> ### 📄 Description ## What and why A sculk catalyst only charged from mobs a player killed. A zombie that burned, fell or was killed by another mob next to a catalyst left no sculk growth. The catalyst also charged from baby animals killed by a player, which drop no experience. The catalyst now takes the experience the mob would drop whoever killed it, and only if the mob drops experience at all. The "does this mob drop experience" check (babies drop none, except monsters and hoglins; tadpoles never) is now one shared function used by both the catalyst and the death drops. ## Vanilla reference - `SculkCatalystBlockEntity.CatalystListener.handleGameEvent`: `experienceWouldDrop = mob.getExperienceReward(...)`, charged if `mob.shouldDropExperience() && experienceWouldDrop > 0`, whatever the cause of death. - `LivingEntity.shouldDropExperience`, with the overrides in `Monster`, `Hoglin` and `Tadpole`. - `LivingEntity.dropExperience`: orbs still drop only for a player kill (unchanged). ## 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:51 +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#4259
No description provided.