[PR #4702] [MERGED] Parity: fall_after_explosion cause, effects_changed updates, /fetchprofile lookups #5791

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4702
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/33-adv


📝 Commits (1)

  • b91f033 Port FallAfterExplosion cause, EffectsChanged updates and /fetchprofile name|id lookups

📊 Changes

7 files changed (+295 additions, -90 deletions)

View changed files

📝 crates/horizon-client-render/src/effects.rs (+21 -1)
📝 crates/horizon-client/src/game/advancements.rs (+47 -30)
📝 crates/horizon-client/src/game/combat.rs (+3 -0)
📝 crates/horizon-client/src/game/commands/extra.rs (+188 -53)
📝 crates/horizon-client/src/game/creatures.rs (+13 -1)
📝 crates/horizon-client/src/game/explosion.rs (+1 -1)
📝 crates/horizon-client/src/game/wind.rs (+22 -4)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3520

  • FallAfterExplosionTrigger.trigger / TriggerInstance.matches: the trigger already fired, but only for wind-charge blasts and with a fabricated wind_charge cause. Now ServerPlayer.trackStartFallingPosition fires it for any blast that hit the player (impact y <= fall start), with the real cause (wind charge, breeze wind charge, creeper, wither, sulfur cube; none for a mace burst), and cause fails when the blast had none.
  • EffectsChangedTrigger.trigger / TriggerInstance.matches: matching already ported; the firing was a per-tick diff of (id, amplifier) and missed onEffectUpdated (duration refresh). PlayerEffects::add now counts changes and the tick check fires on them too; the axolotl path (which knows the source) no longer double-fires.
  • FetchProfileCommand.resolveName / resolveId: now resolve through the cached profile resolver on background threads and report on a later tick with reportResolvedProfile: ResolvableProfile.CODEC SNBT (properties omitted when empty, signature only when signed), the four click events, the head object, sendSuccess(.., false) / sendFailure, and the UUID argument as a UUID string. The entity form shares the same report (it had no click events and wrote properties:[]).

Vanilla followed: ServerPlayer.trackStartFallingPosition/onExplosionHit/onEffectAdded/onEffectUpdated/onEffectsRemoved, FetchProfileCommand.

Tests: fetchprofile_tests (2), effects::tests::adding_counts_a_change_only_when_the_effect_changed; fmt and clippy -D warnings on horizon-client and horizon-client-render.

🤖 Generated with Claude Code


🔄 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/4702 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/33-adv` --- ### 📝 Commits (1) - [`b91f033`](https://github.com/horizon-rust/horizon/commit/b91f0330f4d942624f814cf99e6f6bd1e488d2db) Port FallAfterExplosion cause, EffectsChanged updates and /fetchprofile name|id lookups ### 📊 Changes **7 files changed** (+295 additions, -90 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/effects.rs` (+21 -1) 📝 `crates/horizon-client/src/game/advancements.rs` (+47 -30) 📝 `crates/horizon-client/src/game/combat.rs` (+3 -0) 📝 `crates/horizon-client/src/game/commands/extra.rs` (+188 -53) 📝 `crates/horizon-client/src/game/creatures.rs` (+13 -1) 📝 `crates/horizon-client/src/game/explosion.rs` (+1 -1) 📝 `crates/horizon-client/src/game/wind.rs` (+22 -4) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3520 - `FallAfterExplosionTrigger.trigger` / `TriggerInstance.matches`: the trigger already fired, but only for wind-charge blasts and with a fabricated wind_charge cause. Now `ServerPlayer.trackStartFallingPosition` fires it for any blast that hit the player (impact y <= fall start), with the real cause (wind charge, breeze wind charge, creeper, wither, sulfur cube; none for a mace burst), and `cause` fails when the blast had none. - `EffectsChangedTrigger.trigger` / `TriggerInstance.matches`: matching already ported; the firing was a per-tick diff of (id, amplifier) and missed `onEffectUpdated` (duration refresh). `PlayerEffects::add` now counts changes and the tick check fires on them too; the axolotl path (which knows the source) no longer double-fires. - `FetchProfileCommand.resolveName` / `resolveId`: now resolve through the cached profile resolver on background threads and report on a later tick with `reportResolvedProfile`: `ResolvableProfile.CODEC` SNBT (`properties` omitted when empty, signature only when signed), the four click events, the head object, `sendSuccess(.., false)` / `sendFailure`, and the UUID argument as a UUID string. The entity form shares the same report (it had no click events and wrote `properties:[]`). Vanilla followed: `ServerPlayer.trackStartFallingPosition/onExplosionHit/onEffectAdded/onEffectUpdated/onEffectsRemoved`, `FetchProfileCommand`. Tests: `fetchprofile_tests` (2), `effects::tests::adding_counts_a_change_only_when_the_effect_changed`; fmt and clippy -D warnings on horizon-client and horizon-client-render. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:01 +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#5791
No description provided.