Skip to content

Sync passenger movement and sprint input on Forge 1.20.1 - #273

Open
bakirov-eldar wants to merge 4 commits into
TeamOpenIndustry:1.20.1-forgefrom
bakirov-eldar:1.20.1-forge
Open

bakirov-eldar wants to merge 4 commits into
TeamOpenIndustry:1.20.1-forgefrom
bakirov-eldar:1.20.1-forge

Conversation

@bakirov-eldar

Copy link
Copy Markdown

Changes

Immersive Railroading uses Player.getMovementInput() to let passengers walk inside rolling stock. While a player is riding a UMC SeatEntity, the client now sends the movement and sprint key states to the server once per tick.

  • The server accepts input only from the player occupying the specified seat. It ignores input older than 10 ticks and clears the stored input on dismount.
  • Diagonal movement now has the same speed as movement straight ahead. Holding sprint doubles the movement speed in either case.
  • After positioning a player passenger, UMC clears the player's velocity so the vehicle's motion does not carry over into the player's own movement.

Multiplayer compatibility

The client and server must both support version 1 of the new universalmodcore:passenger_input channel. This requires updating UMC on both sides.

Verification

Standalone Java checks passed for all 32 combinations of movement and sprint keys, rider identity, the 10-tick expiry boundary, and clearing stored input. Verification was limited to the input logic.

Local Build and others added 4 commits November 25, 2026 10:35
Synchronize passenger input, normalize diagonal movement and reset inherited velocity while riding.
Fix passenger movement and sprint on Forge 1.20.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant