Move Or Enlarge Hitbox Of A Mob?

Started by Vegetto on

Topic category: Advanced modding

Last seen on 22:44, 19. May 2021
Joined Jan 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Move Or Enlarge Hitbox Of A Mob?
Fri, 12/30/2016 - 22:13 (edited)

If any of you know, you may or may not, i have added into my Anime World mod colossal type mobs. Now the problem is, their hitbox is right at their feet and i want to move it up closer to their head (specifically their core, but that's right below the head). Does any of you know how i could do this?

Here are some pictures to explain what i want to do:

as you can see, the hitbox for sachiel is small. Too small. What i want it to do, is to either take up the entire size of sachiel or just the core (which isn't in the picture because it couldn't fit. Shows just how big Sachiel is)

Another example is here with the Cherubim Soldier which is coming in the next update of mu Anime World Mod:

The same thing applies here, the hitbox of the mob is too small compared to the actual mob. (and the rest of Sachiel is in the background showing the core which i initially want the hitbox to be at)

 

If anyone knows a way to move the hitbox or make it bigger, please tell me!

Edited by Vegetto on Fri, 12/30/2016 - 22:13
Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this.setSize(width, height);
Fri, 12/30/2016 - 23:59

this.setSize(width, height);

Put it in constructor of your mob.

By the way the values are supposed to be floats ( for example this.setSize(0.6F, 1.95F); )

Last seen on 22:44, 19. May 2021
Joined Jan 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:this.setSize(width, height);
Tue, 01/03/2017 - 16:10

@#1 This really helped, thank you for the reply!

Last seen on 09:43, 26. Mar 2024
Joined May 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
whare is that thissetSize…
Wed, 07/04/2018 - 18:32

whare is that thissetSize(width, heigth); or whare can i find it or whare i must put it?

Last seen on 14:19, 6. Aug 2021
Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And what is constructor of…
Tue, 09/04/2018 - 07:58

And what is constructor of mob?

Last seen on 14:19, 6. Aug 2021
Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What if you didn't want to…
Wed, 09/05/2018 - 21:54

What if you didn't want to make the Hit-box bigger but just move it?