Fixing the mob hitbox (bounding box) bug.

Started by FireWorks_CreepeR on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fixing the mob hitbox (bounding box) bug.

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!

 

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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)

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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?

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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!