Jump to content

LivingEntity update frequency issues/questions


bltpyro

Recommended Posts

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

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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