How to add baby/child model to my mob?

Started by Jasyrus on Thu, 08/08/2019 - 10:12

Topic category: Help with MCreator software

Last seen on 23:31, 9. Aug 2019
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
How to add baby/child model to my mob?
Thu, 08/08/2019 - 10:12

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.

For now this is not possible…
Fri, 08/09/2019 - 09:33

For now this is not possible, you could make another mob for children type, though.

Last seen on 08:27, 4. Jul 2020
Joined Sep 2016
User points:

User statistics:

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

 

Last seen on 08:27, 4. Jul 2020
Joined Sep 2016
User points:

User statistics:

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

if someone know how to do it please post here