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.

LivingEntity update frequency issues/questions

Featured Replies

Posted

I'm having a hard time getting things right with my mobs and the update frequency of EntityRegistry.registerModEntity seems to be making the largest differences. This is what I have noticed in order.

 

With update frequency of 5, my mob would just move around very jerky.

[embed=425,349]

[/embed]

 

I changed the update frequency to 1, and they started moving smoothly, but wouldn't turn completely while moving so ended up moving diagonally. After they stopped moving, the body would turn back in place.

[embed=425,349]

[/embed]

 

I thought changing the update frequency to 3 fixed things since now they moved smoothly and straight, but they have an issue while they are leaping. They seem fine on the way up, but as they are falling down they seem to jerk up and down. I hope it isn't too hard to see.

[embed=425,349]

[/embed]

 

Changing the update frequency to 2  they still jerk up and down while falling a little, and they don't turn completely.

[embed=425,349]

[/embed]

 

Higher than 5 just made everything even more jerky. I guess I should also mention the rest of my registry values.

EntityRegistry.registerModEntity(EntityNightWraith.class, "NightWraith",0, this, 128, 3, false);

 

So as far as questions go:

1. What exactly is the update frequency and how do I know what I should set it to?

2. Is there something else that I could change that may fix some of these problems?

 

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.