Jump to content

[1.7.10]Custom mob circles round and round when size set to 1.5F


Recommended Posts

Posted

I have a custom mob and I like to make the collision map match the model size so in this case a good size would be 1.5F.  I mean for the custom entity I use setSize(1.5F, 1.0F).  This makes the width/depth of the collision box to be bigger (and this can be confirmed by pressing F3+B during game to see the bounding box).

 

Anyway, the problem is that when the mob attacks it now goes around and around the player really fast, and just keeps going around and around.  Note this is in a flat area of the world, so isn't a matter of having trouble navigating around blocks.  Basically the pathfinding seems to never quite get where it wants to go (the player attack target) and so keeps moving the entity.

 

I can of course use size 1.0F but it isn't really what I want. 2.0F seems to work better but also not what I want.  I'd like to get 1.5F (and other fractional sizes) to work.

 

Anyway, I looked into the navigator and path finding code briefly but couldn't see any obvious reason it would have trouble with it, although there is some math floor operations and such going on.

 

Anyone else experience this before?

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.

Announcements



×
×
  • Create New...

Important Information

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