How do you change the hitboxes and scaling through coding? (need for my 2 different mods)

Started by Elastico345 on

Topic category: Help with modding (Java Edition)

Last seen on 17:50, 15. Sep 2021
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you change the hitboxes and scaling through coding? (need for my 2 different mods)

Hey! I'm making several mobs which some of them have hitboxes too little or in a weird size for its model. I also wanted to change the scaling of the mob to something smaller cuz I'm expecting to be significantly smaller than what I made. I don't really want to remake the model again to it's smaller form since it took me 2-10 hours of work depending on how complicated the work is. That is why I need a code to change the size of the hitboxes and scaling of the mob.

I would suggest you to wait…
Sun, 10/14/2018 - 11:40

I would suggest you to wait for 1.8.1 version which will allow you to do this without coding :)

Last seen on 17:50, 15. Sep 2021
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh ok! Didn't know you guys…
Sun, 10/14/2018 - 12:00

Oh ok! Didn't know you guys going to add that feature in the next version of MCreaotr. Thx :D

Last seen on 12:58, 23. Sep 2019
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can change the hitbox…
Sun, 10/14/2018 - 22:17

You can change the hitbox with setSize(x,y) while for the model I think you should be able to scale it by changing the last float value in your mob model (in the addBox function)