[PR #2194] [MERGED] Turtle helmet: Water Breathing while the eyes are out of the water #4092

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

📋 Pull Request Information

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

Base: main ← Head: fix/turtle-helmet-water-breathing


📝 Commits (1)

  • 991406d Turtle helmet: Water Breathing while the eyes are out of the water

📊 Changes

2 files changed (+21 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/music.rs (+1 -1)
📝 crates/horizon-client/src/game/potions.rs (+20 -0)

📄 Description

What and why

A turtle helmet did nothing. In vanilla, a player wearing one gets Water Breathing for 200 ticks every tick their eyes are out of the water, so they can dive and breathe for about ten seconds after getting wet.

The effect is added in the same place that ticks a player's effects, after the effects tick. That place runs for the local player and for the players a host serves, so both are covered. The effect has no particles and shows its icon. Sending it to a client uses the existing effect sync.

Vanilla reference

  • Player.tick: if (!isEyeInFluidMatching(canDrownInFluidType) && this.isEquipped(Items.TURTLE_HELMET)) this.turtleHelmetTick();
  • Player.turtleHelmetTick: addEffect(new MobEffectInstance(MobEffects.WATER_BREATHING, 200, 0, false, false, true)).
  • Player.isEquipped: the item is in the slot its equippable component names (the head for the turtle helmet).

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/2194 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/turtle-helmet-water-breathing` --- ### 📝 Commits (1) - [`991406d`](https://github.com/horizon-rust/horizon/commit/991406d0e0b8bfd8ac87e54372e1fd82b55b0e44) Turtle helmet: Water Breathing while the eyes are out of the water ### 📊 Changes **2 files changed** (+21 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/music.rs` (+1 -1) 📝 `crates/horizon-client/src/game/potions.rs` (+20 -0) </details> ### 📄 Description ## What and why A turtle helmet did nothing. In vanilla, a player wearing one gets Water Breathing for 200 ticks every tick their eyes are out of the water, so they can dive and breathe for about ten seconds after getting wet. The effect is added in the same place that ticks a player's effects, after the effects tick. That place runs for the local player and for the players a host serves, so both are covered. The effect has no particles and shows its icon. Sending it to a client uses the existing effect sync. ## Vanilla reference - `Player.tick`: `if (!isEyeInFluidMatching(canDrownInFluidType) && this.isEquipped(Items.TURTLE_HELMET)) this.turtleHelmetTick();` - `Player.turtleHelmetTick`: `addEffect(new MobEffectInstance(MobEffects.WATER_BREATHING, 200, 0, false, false, true))`. - `Player.isEquipped`: the item is in the slot its `equippable` component names (the head for the turtle helmet). ## 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:14:37 +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#4092
No description provided.