[PR #2357] [MERGED] Let a shulker bullet's levitation run out on mobs #4235

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

📋 Pull Request Information

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

Base: main ← Head: fix/shulker-bullet-levitation


📝 Commits (2)

  • a44581e Let a shulker bullet's levitation run out on mobs
  • 7018125 Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

3 files changed (+9 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+1 -1)
📝 crates/horizon-client/src/mobs.rs (+0 -1)
📝 crates/horizon-client/src/mobs/living.rs (+8 -2)

📄 Description

What and why

A mob hit by a shulker bullet floated upward forever. The levitation was kept in a plain number on the mob (extra.levitation = 200) that nothing ever counted down, and only the shulker-bullet hit could set it.

The hit now gives the mob a normal levitation effect for 200 ticks through the existing mob effect list, which already counts effects down and removes them. The mob movement reads that effect, including its amplifier, so it also works for other sources of the effect. The unused counter is removed.

Vanilla reference

  • ShulkerBullet.onHitEntity: MobEffects.LEVITATION for 200 ticks.
  • LivingEntity.travelInAir: movementY += (0.05 * (amplifier + 1) - movement.y) * 0.2 while the effect is active.

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/2357 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/shulker-bullet-levitation` --- ### 📝 Commits (2) - [`a44581e`](https://github.com/horizon-rust/horizon/commit/a44581eaf39a1775b79e5ee450f7a0fab1dc9347) Let a shulker bullet's levitation run out on mobs - [`7018125`](https://github.com/horizon-rust/horizon/commit/70181252d8996f09403911e4e5ca6ce7d374c90f) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **3 files changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -1) 📝 `crates/horizon-client/src/mobs.rs` (+0 -1) 📝 `crates/horizon-client/src/mobs/living.rs` (+8 -2) </details> ### 📄 Description ## What and why A mob hit by a shulker bullet floated upward forever. The levitation was kept in a plain number on the mob (`extra.levitation = 200`) that nothing ever counted down, and only the shulker-bullet hit could set it. The hit now gives the mob a normal levitation effect for 200 ticks through the existing mob effect list, which already counts effects down and removes them. The mob movement reads that effect, including its amplifier, so it also works for other sources of the effect. The unused counter is removed. ## Vanilla reference - `ShulkerBullet.onHitEntity`: `MobEffects.LEVITATION` for 200 ticks. - `LivingEntity.travelInAir`: `movementY += (0.05 * (amplifier + 1) - movement.y) * 0.2` while the effect is active. ## 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:15:41 +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#4235
No description provided.