Fixing the mob hitbox (bounding box) bug.

Started by FireWorks_CreepeR on Mon, 08/12/2019 - 12:04

Topic category: Help with modding (Java Edition)

Last seen on 10:33, 1. Dec 2020
Joined Jun 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Fixing the mob hitbox (bounding box) bug.
Mon, 08/12/2019 - 12:04

Hi! If you are making a mob which has a custom model you are having probably the same error as me! If you open the mod element and change the bounding box dimensions they get back to normal (0,6x1,8). There's a easy way to fix that! To make a custom bounding box you just need to do 4 easy steps:

1. Select your mob and click the "Edit code" button.

2. Lock the code and open it.

3. In the line "setSize(0.6f, 1.8f);" write your custom dimensions instead of 0.6 and 1.8 (they're width and height respectively).

4. Save the code and build.

Done! Now you'll have the bounding box dimensions you wanted to have!

 

This bug will be fixed in 1…
Mon, 08/12/2019 - 18:12

This bug will be fixed in 1.9.1, but a nice workaround.

Last seen on 10:33, 1. Dec 2020
Joined Jun 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yeah, that was pretty easy…
Tue, 08/13/2019 - 13:03

Yeah, that was pretty easy to fix and I decided to make a forum topic in the case if any user will need it (I guess it wont happen XD)

Last seen on 19:31, 26. Aug 2019
Joined Apr 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Step one and I'm already…
Mon, 08/19/2019 - 22:52

Step one and I'm already confused (Wow I suck).

How do you get to the "Edit Code" button?

Last seen on 19:31, 26. Aug 2019
Joined Apr 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ok so I figured out how to…
Mon, 08/19/2019 - 23:20

Ok so I figured out how to lock and edit the code, but the 0.6f and 1.8f were what I wanted. I saved and tested it but it was still small, so I went back and unlocked it and it was 0.6f and 1.8f again!