Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Yun-L

Members
  • Joined

  • Last visited

  1. Yun-L changed their profile photo
  2. I'm currently working on a mod that adds in vehicles that players can ride and control with keyboard inputs. I've been looking at the `BoatEntity` code in vanilla Minecraft as reference but have been struggling to understand how motion is handled. For example, in `BoatEntity::tick` when a player is riding a boat, motion is updated on both the client side and server side with `BoatEntity::updateMotion` but then updated again only on the client side with `BoatEntity::controlBoat`. The logic seems like it would cause motion to desync between the client and server because the client side motion may include different values set in `BoatEntity::controlBoat`. Since this is code from vanilla Minecraft, I don't have much reason to think this is an error so it's not obvious to me why this works. Does anyone have an explanation for how entity motion logic is supposed to be handled? Thanks in advance for any help provided. Also, I just assumed that I'm not allowed to paste any of the vanilla Minecraft code in this post so I hope the MCP method names are good enough to reference anyone to the code I'm talking about.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.