[PR #2185] [MERGED] Slime block slows a walking player #4083

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

📋 Pull Request Information

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

Base: main ← Head: fix/slime-block-step-slowdown


📝 Commits (1)

  • 19c7a4a Slime block slows a walking player (SlimeBlock.stepOn)

📊 Changes

1 file changed (+14 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/motion.rs (+14 -6)

📄 Description

What and why

Walking on a slime block did not slow the player. In vanilla, a slime block under the feet drags the horizontal speed every tick unless the player sneaks. This adds that to the player's block effects, next to the magma block's stepOn.

Only the player is covered: Horizon's mobs have no stepOn step yet (they don't take magma damage either), so there is nothing to hook the slime drag into for them.

Vanilla reference

  • SlimeBlock.stepOn: when |deltaY| < 0.1 and the entity is not stepping carefully, horizontal movement is multiplied by 0.4 + |deltaY| * 0.2
  • Entity.applyEffectsFromBlocks: calls stepOn for the block under an entity on the ground
  • Entity.isSteppingCarefully (sneaking)

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/2185 **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/slime-block-step-slowdown` --- ### 📝 Commits (1) - [`19c7a4a`](https://github.com/horizon-rust/horizon/commit/19c7a4a008e9d5bd01405adb9511b47a7fa9a51d) Slime block slows a walking player (SlimeBlock.stepOn) ### 📊 Changes **1 file changed** (+14 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/motion.rs` (+14 -6) </details> ### 📄 Description ## What and why Walking on a slime block did not slow the player. In vanilla, a slime block under the feet drags the horizontal speed every tick unless the player sneaks. This adds that to the player's block effects, next to the magma block's `stepOn`. Only the player is covered: Horizon's mobs have no `stepOn` step yet (they don't take magma damage either), so there is nothing to hook the slime drag into for them. ## Vanilla reference - `SlimeBlock.stepOn`: when `|deltaY| < 0.1` and the entity is not stepping carefully, horizontal movement is multiplied by `0.4 + |deltaY| * 0.2` - `Entity.applyEffectsFromBlocks`: calls `stepOn` for the block under an entity on the ground - `Entity.isSteppingCarefully` (sneaking) ## 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:33 +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#4083
No description provided.