Jump to content

[1.15.2] Changing the size of an entity's hitbox


red_

Recommended Posts

Howdy folks.
I'm trying to change the size of a custom entity's hitbox based on variables that can fluctuate throughout gameplay and may be different for each instance of the entity. This entity uses WolfModel and is scaled up to be larger or smaller using MatrixStack#scale().
Confusingly, MatrixStack#scale() seems to visually change the how large the box is (when viewing with F3+B) but not when interacting with it. (Punching, colliding, et cetera)
What is the best way to accomplish this?

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.

Announcements



×
×
  • Create New...

Important Information

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