[GH-ISSUE #1484] [server-thread] Mob status effects are lost for the player #451

Closed
opened 2026-11-02 15:39:11 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1484

🤖 Filed by an AI assistant (Codex).

Tested 9dd9a836991e263b51d0cec0f690d40a0b09eecc. Affects --server-thread.

Reduced reproduction: Survival/Normal, safe platform at y=99, player at (0.5,100,0.5):

fill -2 100 -2 2 103 4 stone
fill 0 100 0 0 102 2 air
summon cave_spider .5 100 1.8 {NoAI:1b,PersistenceRequired:1b}
attribute @e[type=cave_spider,limit=1] minecraft:movement_speed base set 0
data merge entity @e[type=cave_spider,limit=1] {NoAI:0b}
damage @e[type=cave_spider,limit=1] 1 minecraft:player_attack by @s

Wait for a hit, then inspect /data get entity @s active_effects.

Expected: Poison. Actual: both modes lose health 20→18, but threaded mode has no effect in client state or authoritative NBT after another 15 ticks. Explicit --no-server-thread retains Poison with about 122 ticks left. Three paired runs reproduce this.

Also confirmed: husk Hunger, wither-skeleton Wither and bee Poison are omitted after actual hits. An owned, saddled nautilus gives no Breath of the Nautilus: old mode holds Air 279/health 20 underwater; threaded reaches Air -8/health 3. Native 26.3 controls confirm the original three melee effects and nautilus breathing (Air 300→300).

Evidence under .local/singleplayer-audit/: secondary-{a,b,d}, continuation-a/bee-*, continuation-nautilus-b; native controls secondary-native-d and continuation-native-nautilus. Drivers: singleplayer_secondary_audit.py, singleplayer_continuation_audit.py in tools/.

Hypothesis: lan_mobs::acts_on_player omits MobEvent::EffectPlayer. These cases share that event path.

Acceptance: these mob-applied effects reach the server-thread player, with client and authoritative state agreeing after processing.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1484 > 🤖 Filed by an AI assistant (Codex). Tested `9dd9a836991e263b51d0cec0f690d40a0b09eecc`. Affects `--server-thread`. Reduced reproduction: Survival/Normal, safe platform at y=99, player at `(0.5,100,0.5)`: ```mcfunction fill -2 100 -2 2 103 4 stone fill 0 100 0 0 102 2 air summon cave_spider .5 100 1.8 {NoAI:1b,PersistenceRequired:1b} attribute @e[type=cave_spider,limit=1] minecraft:movement_speed base set 0 data merge entity @e[type=cave_spider,limit=1] {NoAI:0b} damage @e[type=cave_spider,limit=1] 1 minecraft:player_attack by @s ``` Wait for a hit, then inspect `/data get entity @s active_effects`. Expected: Poison. Actual: both modes lose health 20→18, but threaded mode has no effect in client state or authoritative NBT after another 15 ticks. Explicit `--no-server-thread` retains Poison with about 122 ticks left. Three paired runs reproduce this. Also confirmed: husk Hunger, wither-skeleton Wither and bee Poison are omitted after actual hits. An owned, saddled nautilus gives no Breath of the Nautilus: old mode holds Air 279/health 20 underwater; threaded reaches Air -8/health 3. Native 26.3 controls confirm the original three melee effects and nautilus breathing (Air 300→300). Evidence under `.local/singleplayer-audit/`: `secondary-{a,b,d}`, `continuation-a/bee-*`, `continuation-nautilus-b`; native controls `secondary-native-d` and `continuation-native-nautilus`. Drivers: `singleplayer_secondary_audit.py`, `singleplayer_continuation_audit.py` in `tools/`. Hypothesis: `lan_mobs::acts_on_player` omits `MobEvent::EffectPlayer`. These cases share that event path. Acceptance: these mob-applied effects reach the server-thread player, with client and authoritative state agreeing after processing.
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

This looks fixed on main by #1512 (merged 2026-10-24), which lists it: mob effects, the axolotl's help and evoker fangs now reach a server's players. Can it be closed, or does it still happen on a current build?

<!-- gh-comment-id:6414871740 --> @kacpherek commented on GitHub (Oct 26, 2026): This looks fixed on main by #1512 (merged 2026-10-24), which lists it: mob effects, the axolotl's help and evoker fangs now reach a server's players. Can it be closed, or does it still happen on a current build?
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged PR #1512 routes mob-applied effects to server guests; its strikes regression verifies Poison arrives. Recommend closing as fixed unless this still reproduces on a build containing that change.

<!-- gh-comment-id:6418427127 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged PR #1512 routes mob-applied effects to server guests; its strikes regression verifies Poison arrives. Recommend closing as fixed unless this still reproduces on a build containing that change.
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#451
No description provided.