So HitBox is broken

Started by Sam_Kowalski_022 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So HitBox is broken

So, I've made a mob but his hitbox is not the size I want it to be. What should I do?


 

 

 

 

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, you can change its…
Mon, 07/24/2023 - 18:28

Hi, you can change its hitbox easily without coding:
1- Go to the "Visual" screen of your Mod on the MCreator Workspace
2- In the "Entity model bounding box" section you can change the values:

- the first is the length / width of the Mob in blocks (it's always a square); this means that a value of 1 equals 16x16 pixels, from this you can count the pixels of your mob and make a simple equation where: 1 : 16 = x : Pixel number ; 

- the second is the height and the third is the size of the shadow, always expressed in blocks.

Looking at your mob I would recommend these values: 0.95 and 2.95 (The size of the shadow is personal but I would say 1.25)