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.

Featured Replies

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

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.