[PR #6182] [CLOSED] Shulker pushes move a body without a step, as Entity.move does #6704

Closed
opened 2026-11-03 06:25:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6182
Author: @readerkid
Created: 11/1/2026
Status: ❌ Closed

Base: main ← Head: fix/shulker-push-step


📝 Commits (1)

  • 3b271ba Shulker pushes move a body without a step, as Entity.move does

📊 Changes

1 file changed (+7 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/piston_push.rs (+7 -3)

📄 Description

🤖 Opened by readerkid's AI agent (opencode + DeepSeek V4.1 Flash), not by readerkid personally.

What and why

Follow-up to the shulker-box collision work in #5319, after playing with it on a server.

Opening a shulker box under an entity moved players wrongly in three ways: a body standing on the box was snapped to the top of the lid instead of being lifted the swept amount per tick; a body the lid grew into was not pushed at all, so a sideways-facing box never moved a player out of its way; and a player pushed onto a fully open box kept falling and being put back on top every tick, while armor stands (which take no step height) sat still.

All three come from the same call: push_for_shulker resolved the push with the body's step height and ground flag. Vanilla ShulkerBoxBlockEntity.moveCollidedEntities calls entity.move(MoverType.SHULKER_BOX, …), and Entity.move has no step logic — the body travels exactly the swept amount and a shape it already overlaps does not stop it. The push still resolves against blocks and the world border as before; this only stops offering the walking resolver a step.

Expected after this: a lid opening under a body lifts it about 0.11 a tick instead of in one jump; a body the lid grows into still moves out; and a body resting on a fully open box stays put instead of being re-stepped each tick.

Kind

  • parity: Horizon now does what vanilla 26.3 does

Vanilla reference

ShulkerBoxBlockEntity.moveCollidedEntities: the swept box Shulker.getProgressDeltaAabb(1.0F, facing, progressOld, progress, Vec3.atBottomCenterOf(pos)), entities intersecting it, pushed by (aabb.getXsize() + 0.01) * facing through Entity.move(MoverType.SHULKER_BOX, …) → Entity.collide, which applies no step and ignores the shapes the body already overlaps.

No parity-harness case covers the pushed body's resolution (the harness checks the swept box itself, which is unchanged), so this is not asserted by a harness run.

Other projects' code

none

Self-check

Not the full python3 tools/pr_ready.py block, and I would rather say so than paste a run I do not have. On this tree, in the project's dev container:

$ cargo check -p horizon-client --bins
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 07s
    exit=0

$ cargo fmt --check
    exit=0

I have not run clippy, the doc tests or the horizon-client test suite on this commit, and I have not re-checked the behaviour in game since the change — the change is two arguments at one call site plus its doc comment, and CI plus an in-game check should cover the rest before merge.

Screenshots

None: the change is behavioural and needs an in-game before/after (player lifted by an opening lid, a sideways box pushing a player out). I could not record one — F3+B hitbox rendering does nothing in this build, so the lid's shape is not visible for a clean comparison.


🔄 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/6182 **Author:** [@readerkid](https://github.com/readerkid) **Created:** 11/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/shulker-push-step` --- ### 📝 Commits (1) - [`3b271ba`](https://github.com/horizon-rust/horizon/commit/3b271ba4a1b05236b007c5cc56b0aaaf96648da7) Shulker pushes move a body without a step, as Entity.move does ### 📊 Changes **1 file changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/piston_push.rs` (+7 -3) </details> ### 📄 Description > 🤖 Opened by readerkid's AI agent (opencode + DeepSeek V4.1 Flash), not by readerkid personally. ## What and why Follow-up to the shulker-box collision work in #5319, after playing with it on a server. Opening a shulker box under an entity moved players wrongly in three ways: a body standing on the box was snapped to the top of the lid instead of being lifted the swept amount per tick; a body the lid grew into was not pushed at all, so a sideways-facing box never moved a player out of its way; and a player pushed onto a fully open box kept falling and being put back on top every tick, while armor stands (which take no step height) sat still. All three come from the same call: `push_for_shulker` resolved the push with the body's step height and ground flag. Vanilla `ShulkerBoxBlockEntity.moveCollidedEntities` calls `entity.move(MoverType.SHULKER_BOX, …)`, and `Entity.move` has no step logic — the body travels exactly the swept amount and a shape it already overlaps does not stop it. The push still resolves against blocks and the world border as before; this only stops offering the walking resolver a step. Expected after this: a lid opening under a body lifts it about 0.11 a tick instead of in one jump; a body the lid grows into still moves out; and a body resting on a fully open box stays put instead of being re-stepped each tick. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does ## Vanilla reference `ShulkerBoxBlockEntity.moveCollidedEntities`: the swept box `Shulker.getProgressDeltaAabb(1.0F, facing, progressOld, progress, Vec3.atBottomCenterOf(pos))`, entities intersecting it, pushed by `(aabb.getXsize() + 0.01) * facing` through `Entity.move(MoverType.SHULKER_BOX, …)` → `Entity.collide`, which applies no step and ignores the shapes the body already overlaps. No parity-harness case covers the pushed body's resolution (the harness checks the swept box itself, which is unchanged), so this is not asserted by a harness run. ## Other projects' code none ## Self-check Not the full `python3 tools/pr_ready.py` block, and I would rather say so than paste a run I do not have. On this tree, in the project's dev container: ``` $ cargo check -p horizon-client --bins Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 07s exit=0 $ cargo fmt --check exit=0 ``` I have not run clippy, the doc tests or the `horizon-client` test suite on this commit, and I have not re-checked the behaviour in game since the change — the change is two arguments at one call site plus its doc comment, and CI plus an in-game check should cover the rest before merge. ## Screenshots None: the change is behavioural and needs an in-game before/after (player lifted by an opening lid, a sideways box pushing a player out). I could not record one — F3+B hitbox rendering does nothing in this build, so the lid's shape is not visible for a clean comparison. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:25:08 +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#6704
No description provided.