How to add baby/child model to my mob?

Started by Jasyrus on

Topic category: Help with MCreator software

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add baby/child model to my mob?

I already set up my mob and have made both the adult and child models + textures.

However, how do i upload the child model to my mob class? I have my mob class set to being able to breed.

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It is possible, im trying to…
Fri, 06/05/2020 - 19:53

It is possible, im trying to do atm, you need to change the code somehow, here is how i use to do on Mcreator 1.8 (for Minecraft 1.12)

 

public void serverLoad(FMLServerStartingEvent event) {
	}

	@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);
	}

 

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if someone know how to do it…
Fri, 06/05/2020 - 19:53

if someone know how to do it please post here