[GH-ISSUE #1609] slime blocks moved by pistons dont interact with the player. they just go into the player and dont p #502

Closed
opened 2026-11-02 15:39:35 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1609

What I did: place piston,
What happened:
What I expected:
Horizon version: release or commit
OS, CPU, GPU:

  • a screenshot, a video or the log file if you have one

Reported on Discord by Lu!S in #horizon-bugs · Discord thread
Tags: gameplay

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1609 > What I did: place piston, > What happened: > What I expected: > Horizon version: release or commit > OS, CPU, GPU: > + a screenshot, a video or the log file if you have one Reported on Discord by **Lu!S** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1563658012286001254) Tags: gameplay <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:39:35 +07:00
Author
Owner

@ludovic111 commented on GitHub (Oct 24, 2026):

Lu!S added on Discord:

What I did: place piston,
place slimeblock in front of piston,
stand in front of slime,
acitvate piston
What happened:
the slime block bugged into the player
What I expected:
i get pushed by the slime block and bounced
Horizon version:v0.2.48
OS, CPU, GPU:Windwos ryzen 5 7600 rtx 3060 ti

What I did: place piston,
place slimeblock in front of piston,
stand in front of slime,
acitvate piston
What happened:
the slime block bugged into the player
What I expected:
i get pushed by the slime block and bounced
Horizon version:v0.2.48
OS, CPU, GPU:Windwos ryzen 5 7600 rtx 3060 ti

<!-- gh-comment-id:6389520997 --> @ludovic111 commented on GitHub (Oct 24, 2026): **Lu!S** added on Discord: > What I did: place piston, > place slimeblock in front of piston, > stand in front of slime, > acitvate piston > What happened: > the slime block bugged into the player > What I expected: > i get pushed by the slime block and bounced > Horizon version:v0.2.48 > OS, CPU, GPU:Windwos ryzen 5 7600 rtx 3060 ti - [image.png](https://cdn.discordapp.com/attachments/1563658012286001254/1563659130558742630/image.png?ex=6ade6e8c&is=6add1d0c&hm=d177cddb3a34d2a394d69f4498426951ff9ae871508cbf5ce3af53aa5bd70aba&) > What I did: place piston, > place slimeblock in front of piston, > stand in front of slime, > acitvate piston > What happened: > the slime block bugged into the player > What I expected: > i get pushed by the slime block and bounced > Horizon version:v0.2.48 > OS, CPU, GPU:Windwos ryzen 5 7600 rtx 3060 ti - [image.png](https://cdn.discordapp.com/attachments/1563658012286001254/1563659344241754334/image.png?ex=6ade6ebf&is=6add1d3f&hm=eb0f81851c9bd081eb69cc66689132e3bf8084481550ab1340954bf9f11290df&) <!-- kira -->
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. #1608 repeats this slime-block/player collision report; recommend retaining this fuller reproduction and closing #1608 as a duplicate. #1496 covers general piston pushing. PR #2206 addresses visual piston movement only and explicitly leaves player pushing/slime interaction unresolved, so keep this issue open.

<!-- gh-comment-id:6418446183 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. #1608 repeats this slime-block/player collision report; recommend retaining this fuller reproduction and closing #1608 as a duplicate. #1496 covers general piston pushing. PR #2206 addresses visual piston movement only and explicitly leaves player pushing/slime interaction unresolved, so keep this issue open.
Author
Owner

@levzzz5154 commented on GitHub (Oct 27, 2026):

🤖 Agent: This is fixed by the open pull request #2482 ("Push players and entities with moving pistons", branch fix/piston-entity-push on the fork), which now pushes and bounces a player standing in front of a piston-moved slime block. The behaviour the report asks for ("i get pushed by the slime block and bounced") is implemented and covered by a LAN check.

What vanilla does

PistonMovingBlockEntity.moveCollidedEntities (26.3) does two things to the bodies in the moved block's path:

  1. The moved block's swept collision shape pushes the body out of the way. PistonMath.getMovementArea gives the slab the block is about to sweep, getMovement measures how far the body stands inside it, and moveEntityByPiston moves the body with entity.move(MoverType.PISTON, …) (the world's blocks stop the body there, and so does the world border).
  2. When the moved block is a slime block (causeBounce = self.movedState.is(Blocks.SLIME_BLOCK) and the body canSimulateMovement()), the body's velocity along the push axis is set to that direction's step (entity.setDeltaMovement(dx, dy, dz)), so the body is launched away as well.

So the player is pushed by the block itself and bounced by it - the slime block does not simply go into the player.

Evidence on the branch

A new LAN case, piston-slime in tools/lan_e2e.py: a piston pushes a slime block into the body standing in front of it, for the host and the LAN guest, with a plain block as the control.

$ python3 tools/lan_e2e.py --bin-dir target/fast --check piston-push --check piston-slime
[lan] piston-push: PASS {'Player89873': 0.05, 'Guest': 0.05, 'inventory': 0.6600000000000001, 'pig': 0.8099609374999996, 'border': [{'center': [-0.5, 8.5], 'size': 20.5}, {'center': [-0.5, 8.5], 'size': 20.5}]}
[lan] piston-slime: PASS {'Player89873': 2.507, 'Guest': 2.507, 'stone': 0.81}

(the two games were launched with --offscreen --no-pause on the machine this was run on, which has no focused window; the cases are the committed ones.)

piston-slime puts the body 2.5 blocks down the push axis, while the plain-block control only pushes it 0.81 blocks and leaves its velocity at zero: the difference is the bounce. The piston-push case next to it covers the same push for a player, a guest, a stationary mob and a player with the inventory open, and the world border's wall stopping a body pushed into it.

The pull request body now carries Fixes #1608, Fixes #1609 so both can be closed with it.

<!-- gh-comment-id:6430364828 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: This is fixed by the open pull request #2482 ("Push players and entities with moving pistons", branch `fix/piston-entity-push` on the fork), which now pushes and bounces a player standing in front of a piston-moved slime block. The behaviour the report asks for ("i get pushed by the slime block and bounced") is implemented and covered by a LAN check. **What vanilla does** `PistonMovingBlockEntity.moveCollidedEntities` (26.3) does two things to the bodies in the moved block's path: 1. The moved block's swept collision shape pushes the body out of the way. `PistonMath.getMovementArea` gives the slab the block is about to sweep, `getMovement` measures how far the body stands inside it, and `moveEntityByPiston` moves the body with `entity.move(MoverType.PISTON, …)` (the world's blocks stop the body there, and so does the world border). 2. When the moved block is a slime block (`causeBounce = self.movedState.is(Blocks.SLIME_BLOCK)` and the body `canSimulateMovement()`), the body's velocity along the push axis is set to that direction's step (`entity.setDeltaMovement(dx, dy, dz)`), so the body is launched away as well. So the player is pushed by the block itself and bounced by it - the slime block does not simply go into the player. **Evidence on the branch** A new LAN case, `piston-slime` in `tools/lan_e2e.py`: a piston pushes a slime block into the body standing in front of it, for the host and the LAN guest, with a plain block as the control. ``` $ python3 tools/lan_e2e.py --bin-dir target/fast --check piston-push --check piston-slime [lan] piston-push: PASS {'Player89873': 0.05, 'Guest': 0.05, 'inventory': 0.6600000000000001, 'pig': 0.8099609374999996, 'border': [{'center': [-0.5, 8.5], 'size': 20.5}, {'center': [-0.5, 8.5], 'size': 20.5}]} [lan] piston-slime: PASS {'Player89873': 2.507, 'Guest': 2.507, 'stone': 0.81} ``` (the two games were launched with `--offscreen --no-pause` on the machine this was run on, which has no focused window; the cases are the committed ones.) `piston-slime` puts the body 2.5 blocks down the push axis, while the plain-block control only pushes it 0.81 blocks and leaves its velocity at zero: the difference is the bounce. The `piston-push` case next to it covers the same push for a player, a guest, a stationary mob and a player with the inventory open, and the world border's wall stopping a body pushed into it. The pull request body now carries `Fixes #1608, Fixes #1609` so both can be closed with it.
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#502
No description provided.