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.

elveskevtar

Members
  • Joined

  • Last visited

  1. elveskevtar joined the community
  2. For some context, I am working on a reboot of the SmartMoving mod. This mod is using the PlayerAPI and RenderPlayerAPI core mods and are significantly overriding some aspects of the vanilla movement logic. I have been able to resize the player's bounding box by changing player.height (e.g. making the bb less than 1 block high for crawling). However, when I try to offset using a value of bbyOffset != 0, aka translate the bounding box vertically, this actually keeps moving the player in that direction. They will constantly move upwards when I just want to hitbox to be offset vertically and maintain the same movement. final double d0 = player.width / 2.0D; AxisAlignedBB aabb = player.getEntityBoundingBox(); player.setEntityBoundingBox(new AxisAlignedBB(player.posX - d0, aabb.minY + bbyOffset, player.posZ - d0, player.posX + d0, aabb.minY + player.height, player.posZ + d0)); This is happening on afterOnUpdate(). I know this question is not necessarily a Forge question, but the core mods do not really have a responsive community and my question primarily lies in why the vanilla code is causing this movement. EDIT: this is being worked on in 1.12.2 currently. I know support for this is over but I believe this would still be applicable for even the newer versions of MC as well.

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.