How to scale mobs

Started by Gerhard on

Topic category: Help with modding (Java Edition)

Last seen on 10:07, 5. Sep 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to scale mobs

Hi,

How can I scale down my mobs? For example: when I breed two mobs, they have a baby which is the same size as an adult. How can i scale the baby down?

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I do not think that is…
Sun, 12/22/2019 - 16:29

I do not think that is possible. You probably need to create your own mob model :(

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just make it a child. set…
Thu, 12/26/2019 - 17:58

just make it a child. set the flag "isChild" to true when you create your entity's model class

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Actually, thats not the best…
Thu, 12/26/2019 - 18:13

Actually, thats not the best way to do it. 

When you create your entity class, you can override the "isChild" method to check your entity's age. When your entity is rendered it will check if child and render accordingly. Thats how vanilla does it.

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i did on Mcreator 1.8 (MC 1…
Fri, 06/05/2020 - 20:16

i did on Mcreator 1.8 (MC 1.12) like this:

 

Still want to know how to do it for New MCreator (MC 1.15) :(

 

@SideOnly(Side.CLIENT)
	public void registerRenderers() {
		RenderLiving customRender = new RenderLiving<EntityAgeable>(Minecraft.getMinecraft().getRenderManager(), new ModelBlackCaiman(), 0) {

			protected ResourceLocation getEntityTexture(EntityAgeable par1Entity) {
				return new ResourceLocation("Crocodile_BlackCaiman.png");
			}

			protected void preRenderCallback(EntityAgeable entitylivingbaseIn, float partialTickTime) {
          float f = 1.4F;
          if (entitylivingbaseIn.getGrowingAge() < 0) {
               f = (float)((double)f * 0.5D);
               this.shadowSize = 0.35F;
          } else {
               this.shadowSize = 0.7F;
          }
          GlStateManager.scale(f, f, f);
     } 
			
		};
		RenderingRegistry.registerEntityRenderingHandler(EntitycrocodileBlackCaiman.class, customRender);
	}

 

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you please code this…
Fri, 06/05/2020 - 20:17

can you please code this here? thanks!

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i don't know anything about…
Sat, 06/06/2020 - 06:13

i don't know anything about 1.15 yet.

as for 1.12.x, i wouldn't have done it your way, but if it works...

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im trying to update my mod…
Sat, 06/06/2020 - 19:28

im trying to update my mod to 1.15, but i cant find much on this... i would know if i could look to a .java file of some entity of some mod that is already on 1.15, but i dont know how to find it

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
do you know how to scale…
Sat, 06/06/2020 - 23:05

do you know how to scale down/up a mob? was so easy on 1.12... cant find anything real sad

Last seen on 16:41, 6. Jun 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you help me to scale…
Fri, 05/19/2023 - 16:39

Could you help me to scale down a model on mcreator 1.12.2 please?