[PR #2974] [MERGED] Fire the fall, lava ride, Nether return, durability and effects advancements #4728

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

📋 Pull Request Information

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

Base: main ← Head: fix/advancement-triggers-distance-effects


📝 Commits (7)

  • a90e3bc Fire fall_from_height when a fall from high up ends
  • 47bb5c6 Fire fall_after_explosion for a fall after a wind charge blast
  • e54cf96 Fire ride_entity_in_lava while riding a vehicle through lava
  • 727bd7f Fire nether_travel when the player returns from the Nether
  • 2e8c8e1 Fire effects_changed when the player's effects change
  • 7bfc737 Fire item_durability_changed when a player's item takes damage
  • e12c5d4 Advancements: the durability trigger fires only when wear is left

📊 Changes

15 files changed (+252 additions, -33 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+7 -6)
📝 crates/horizon-client/src/game/advancements.rs (+187 -4)
📝 crates/horizon-client/src/game/commands.rs (+2 -1)
📝 crates/horizon-client/src/game/creatures.rs (+8 -2)
📝 crates/horizon-client/src/game/enchant_effects.rs (+11 -2)
📝 crates/horizon-client/src/game/explosion.rs (+2 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+8 -1)
📝 crates/horizon-client/src/game/lan_mobs.rs (+1 -1)
📝 crates/horizon-client/src/game/mace.rs (+1 -1)
📝 crates/horizon-client/src/game/mounts.rs (+13 -9)
📝 crates/horizon-client/src/game/server_travel.rs (+5 -2)
📝 crates/horizon-client/src/game/shield.rs (+1 -1)
📝 crates/horizon-client/src/game/wind.rs (+1 -0)
📝 crates/horizon-client/src/mobs.rs (+4 -2)
📝 crates/horizon-client/src/mobs/axolotl.rs (+1 -1)

📄 Description

What and why

Advancements that depend on these triggers could never be earned, because nothing fired them:

  • Fall from height (adventure/fall_from_world_height): a fall that ends after starting from high up now fires the trigger, as vanilla does when a fall is reset.
  • Fall after a wind charge blast (adventure/who_needs_rockets): a blast that pushes the player up and is followed by a fall of 7 blocks or more.
  • Riding a strider in lava (nether/ride_strider_in_overworld_lava): fires each tick while the vehicle is in lava, measured from where the ride entered the lava.
  • Back from the Nether (nether/fast_travel): measured from where the player went into the Nether.
  • Item durability (nether/ride_strider): the warped fungus on a stick while steering a strider. Every player-owned item that takes damage now fires it too: held tools and weapons, armour, elytra, shield, mace, brush, mining tools.
  • Effects changed (nether/all_effects, nether/all_potions, husbandry/kill_axolotl_target): fires when the player's effects change, with the axolotl as the source of the Regeneration it gives.

Limits, for review:

  • Effect changes are seen once per tick, by comparing the effect and amplifier pairs. A change that is undone within the same tick, or a duration-only refresh, does not fire.
  • Item durability does not read the durability or delta ranges. No advancement in the data uses them.
  • Blast and fall state live in TravelMarks on the player, and guests swap it in as levitation does.

Vanilla reference

  • ServerPlayer.java:630-631 (tick), 888-894 (resetFallDistance), 897-907 (trackStartFallingPosition), 909-921 (trackEnteredOrExitedLavaOnVehicle), 1211 (enteredNetherPosition), 1248-1256 (triggerDimensionChangeTriggers), 1422-1426 (onExplosionHit), 1804-1833 (onEffectAdded, onEffectUpdated, onEffectsRemoved).
  • ItemStack.java:508 (applyDamage, ITEM_DURABILITY_CHANGED).
  • Axolotl.java:486-491 (applySupportingEffects, with the axolotl as source).
  • triggers/DistanceTrigger.java, FallAfterExplosionTrigger.java, EffectsChangedTrigger.java, ItemDurabilityTrigger.java.

Self-check

clippy and fmt pass for horizon-client. Not run in game.


🔄 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/2974 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/advancement-triggers-distance-effects` --- ### 📝 Commits (7) - [`a90e3bc`](https://github.com/horizon-rust/horizon/commit/a90e3bc36d4020671b39b2f4285537074f2f79c5) Fire fall_from_height when a fall from high up ends - [`47bb5c6`](https://github.com/horizon-rust/horizon/commit/47bb5c668f7a3409346ee5417292d1999185566b) Fire fall_after_explosion for a fall after a wind charge blast - [`e54cf96`](https://github.com/horizon-rust/horizon/commit/e54cf962710c68bdb573ffad6de7b8e68b9c66cc) Fire ride_entity_in_lava while riding a vehicle through lava - [`727bd7f`](https://github.com/horizon-rust/horizon/commit/727bd7f2dc17c9f4ed9967efa9ed3d1d05fa30f2) Fire nether_travel when the player returns from the Nether - [`2e8c8e1`](https://github.com/horizon-rust/horizon/commit/2e8c8e1dc7d4f0aa577bb77f9048e92d1b0bff04) Fire effects_changed when the player's effects change - [`7bfc737`](https://github.com/horizon-rust/horizon/commit/7bfc737d811163de48e84b5eddb00e5e6230e3ae) Fire item_durability_changed when a player's item takes damage - [`e12c5d4`](https://github.com/horizon-rust/horizon/commit/e12c5d4f23677b6fb6030f6a01f6652fe2b35ec5) Advancements: the durability trigger fires only when wear is left ### 📊 Changes **15 files changed** (+252 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+7 -6) 📝 `crates/horizon-client/src/game/advancements.rs` (+187 -4) 📝 `crates/horizon-client/src/game/commands.rs` (+2 -1) 📝 `crates/horizon-client/src/game/creatures.rs` (+8 -2) 📝 `crates/horizon-client/src/game/enchant_effects.rs` (+11 -2) 📝 `crates/horizon-client/src/game/explosion.rs` (+2 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+8 -1) 📝 `crates/horizon-client/src/game/lan_mobs.rs` (+1 -1) 📝 `crates/horizon-client/src/game/mace.rs` (+1 -1) 📝 `crates/horizon-client/src/game/mounts.rs` (+13 -9) 📝 `crates/horizon-client/src/game/server_travel.rs` (+5 -2) 📝 `crates/horizon-client/src/game/shield.rs` (+1 -1) 📝 `crates/horizon-client/src/game/wind.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs.rs` (+4 -2) 📝 `crates/horizon-client/src/mobs/axolotl.rs` (+1 -1) </details> ### 📄 Description ## What and why Advancements that depend on these triggers could never be earned, because nothing fired them: - Fall from height (`adventure/fall_from_world_height`): a fall that ends after starting from high up now fires the trigger, as vanilla does when a fall is reset. - Fall after a wind charge blast (`adventure/who_needs_rockets`): a blast that pushes the player up and is followed by a fall of 7 blocks or more. - Riding a strider in lava (`nether/ride_strider_in_overworld_lava`): fires each tick while the vehicle is in lava, measured from where the ride entered the lava. - Back from the Nether (`nether/fast_travel`): measured from where the player went into the Nether. - Item durability (`nether/ride_strider`): the warped fungus on a stick while steering a strider. Every player-owned item that takes damage now fires it too: held tools and weapons, armour, elytra, shield, mace, brush, mining tools. - Effects changed (`nether/all_effects`, `nether/all_potions`, `husbandry/kill_axolotl_target`): fires when the player's effects change, with the axolotl as the source of the Regeneration it gives. Limits, for review: - Effect changes are seen once per tick, by comparing the effect and amplifier pairs. A change that is undone within the same tick, or a duration-only refresh, does not fire. - Item durability does not read the durability or delta ranges. No advancement in the data uses them. - Blast and fall state live in `TravelMarks` on the player, and guests swap it in as `levitation` does. ## Vanilla reference - ServerPlayer.java:630-631 (tick), 888-894 (resetFallDistance), 897-907 (trackStartFallingPosition), 909-921 (trackEnteredOrExitedLavaOnVehicle), 1211 (enteredNetherPosition), 1248-1256 (triggerDimensionChangeTriggers), 1422-1426 (onExplosionHit), 1804-1833 (onEffectAdded, onEffectUpdated, onEffectsRemoved). - ItemStack.java:508 (applyDamage, ITEM_DURABILITY_CHANGED). - Axolotl.java:486-491 (applySupportingEffects, with the axolotl as source). - triggers/DistanceTrigger.java, FallAfterExplosionTrigger.java, EffectsChangedTrigger.java, ItemDurabilityTrigger.java. ## Self-check clippy and fmt pass for horizon-client. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:30 +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#4728
No description provided.