Skip to content

feat(client): implement smooth piston animations and player pushing - #706

Merged
Purdze merged 12 commits into
PommeMC:masterfrom
lazy-importer:feat/redstone
Oct 21, 2026
Merged

Purdze merged 12 commits into
PommeMC:masterfrom
lazy-importer:feat/redstone

Conversation

@lazy-importer

@lazy-importer lazy-importer commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / code cleanup
  • Performance improvement
  • Chore / tooling
  • Documentation

Summary

pistons now run client-side like vanilla's client does, since the server never sends the moving blocks.

  • block events run triggerEvent/moveBlocks with the full structure resolver (12 blocks, slime and honey, destroyed blocks), placing moving_piston blocks that land after their death ticks
  • push reaction and block entity flags dumped from the 26.2 jar by StateDump into block_piston.json
  • moving blocks mesh as terrain (all faces, real light, unblended biome tint) and draw through the chunk pipelines, with the short head and the retracting base
  • moving pistons collide, and push the player with the 0.51 cap, slime bounce, honey drag and the base fix
  • drops the earlier guessed version, its item-pipeline rendering and the unrelated teleport/default-model changes

Reference

PistonBaseBlock, PistonStructureResolver, PistonMovingBlockEntity, MovingPistonBlock, PistonMath, PistonHeadRenderer, MovingBlockFeatureRenderer, MovingBlockRenderState, Entity.move/limitPistonMovement

Testing

new blocks/pistons script (push, sticky + obsidian, player lift) and the full in-game run pass. slime launchers, honey drag and fast clocks still want a look in game.

- Handle NetworkEvent::BlockEvent for piston extend and retract actions.
- Interpolate moving piston heads and pushed blocks smoothly across partial ticks.
- Pre-warm baked variant meshes for piston, sticky_piston, and piston_head.
- Add collision boxes and player pushing mechanics for extending and retracting pistons.
@github-actions github-actions Bot added bug Something isn't working enhancement New feature or request merge conflict Conflicts with the base branch and needs a merge labels Oct 16, 2026
@github-actions github-actions Bot added merge conflict Conflicts with the base branch and needs a merge and removed merge conflict Conflicts with the base branch and needs a merge labels Oct 20, 2026
@github-actions github-actions Bot removed the merge conflict Conflicts with the base branch and needs a merge label Oct 21, 2026
@Purdze
Purdze merged commit 3d34c37 into PommeMC:master Oct 21, 2026
15 checks passed
@Purdze Purdze mentioned this pull request Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants