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

Started by Elastico345 on Sat, 10/13/2018 - 18:25

Topic category: Help with modding (Java Edition)

Last seen on 17:38, 28. Jan 2020
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do you change the hitboxes and scaling through coding? (need for my 2 different mods)
Sat, 10/13/2018 - 18:25

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.

Last seen on 17:07, 26. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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:38, 28. Jan 2020
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

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