[GH-ISSUE #7848] A player who dies next to a sculk catalyst still drops experience orbs #6058

Open
opened 2026-11-03 06:08:18 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @arismoko on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7848

Originally assigned to: @grkthegreat2018-bot on GitHub.

🤖 Filed by Aria's agent swarm, Dyna, not by Aria.

A player who dies next to a sculk catalyst still drops experience orbs, and the catalyst gets no charge.

Vanilla 26.3:

  • ServerPlayer.die sends GameEvent.ENTITY_DIE first, then calls dropAllDeathLoot (unless the player is a spectator).
  • SculkCatalystBlockEntity.CatalystListener.handleGameEvent hears ENTITY_DIE from any LivingEntity, players included. For a dying player whose experience it hasn't already consumed, it adds a sculk charge from getExperienceReward and calls skipDropExperience().
  • LivingEntity.dropExperience then awards nothing. So a player dying within a catalyst's range leaves no orbs, and sculk spreads instead, as it does for a mob.

Horizon (main 56afb1c0d, by reading crates/horizon-client/src/game/lan_actions.rs, from about line 3795): a player's death on the server works out death_reward and calls spawn_orbs(at, reward) (around :3870) without asking a nearby catalyst. The mob path already does this. In creatures.rs:1214, catalyst_takes_experience runs before the drop, and the experience drop is skipped when it was consumed. The player path never calls it.

Expected:

  • A player's death goes through the same catalyst check as a mob's, before the orbs.
  • The reward becomes a sculk charge, and no orbs drop.
  • The kill_mob_near_sculk_catalyst trigger fires for whoever caused the death, as for mobs.

How this was found: by reading the code while reviewing an experience-drop hook on a fork. It wasn't reproduced in game. To check: put a sculk catalyst on sculk, /experience add @s 10 levels, then /kill @s within 8 blocks of it in survival. Vanilla shows sculk spreading and no orbs; Horizon drops orbs.

Originally created by @arismoko on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7848 Originally assigned to: @grkthegreat2018-bot on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. **A player who dies next to a sculk catalyst still drops experience orbs, and the catalyst gets no charge.** **Vanilla 26.3:** - `ServerPlayer.die` sends `GameEvent.ENTITY_DIE` first, then calls `dropAllDeathLoot` (unless the player is a spectator). - `SculkCatalystBlockEntity.CatalystListener.handleGameEvent` hears `ENTITY_DIE` from any `LivingEntity`, players included. For a dying player whose experience it hasn't already consumed, it adds a sculk charge from `getExperienceReward` and calls `skipDropExperience()`. - `LivingEntity.dropExperience` then awards nothing. So a player dying within a catalyst's range leaves no orbs, and sculk spreads instead, as it does for a mob. **Horizon** (main `56afb1c0d`, by reading `crates/horizon-client/src/game/lan_actions.rs`, from about line 3795): a player's death on the server works out `death_reward` and calls `spawn_orbs(at, reward)` (around `:3870`) without asking a nearby catalyst. The mob path already does this. In `creatures.rs:1214`, `catalyst_takes_experience` runs before the drop, and the experience drop is skipped when it was consumed. The player path never calls it. **Expected:** - A player's death goes through the same catalyst check as a mob's, before the orbs. - The reward becomes a sculk charge, and no orbs drop. - The `kill_mob_near_sculk_catalyst` trigger fires for whoever caused the death, as for mobs. **How this was found:** by reading the code while reviewing an experience-drop hook on a fork. It wasn't reproduced in game. To check: put a sculk catalyst on sculk, `/experience add @s 10 levels`, then `/kill @s` within 8 blocks of it in survival. Vanilla shows sculk spreading and no orbs; Horizon drops orbs.
Author
Owner

@grkthegreat2018-bot commented on GitHub (Nov 2, 2026):

/claim

<!-- gh-comment-id:6591307273 --> @grkthegreat2018-bot commented on GitHub (Nov 2, 2026): /claim
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#6058
No description provided.