Increasing scale of entity model

Started by JohnMcMichael on

Topic category: Help with modding (Java Edition)

Last seen on 07:13, 29. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Increasing scale of entity model

I'm trying to find out how to increase the scale of an entity using the default biped model. I've seen this: https://mcreator.net/forum/73570/render-scaling-you-entities-matrixstack, but it doesn't seem to be applicable here. On 1.16, btw.

Here's the code in the Renderer.java file for the entity:

(if someone could tell me how to use an actual zombie model, that would also be nice, I've tried and my attempt didn't compile correctly)

@OnlyIn(Dist.CLIENT)

public class MediumZombieRenderer {
public static class ModelRegisterHandler {
@SubscribeEvent
@OnlyIn(Dist.CLIENT)
public void registerModels(ModelRegistryEvent event) {
RenderingRegistry.registerEntityRenderingHandler(MediumZombieEntity.entity, renderManager -> {
BipedRenderer customRender = new BipedRenderer(renderManager, new BipedModel(0), 0.5f) {
@Override
public ResourceLocation getEntityTexture(Entity entity) {
return new ResourceLocation("textures/entity/zombie/zombie.png");
}
};
customRender.addLayer(new BipedArmorLayer(customRender, new BipedModel(0.5f), new BipedModel(1)));

return customRender;
});
}
}
}
Last seen on 21:08, 7. Apr 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could use Nerdy's Gecko…
Sat, 05/20/2023 - 17:28

You could use Nerdy's Gecko Lib Plugin and remake your entity in it then create an animation where your entity uses scale.

Hopefuly this helps!

Last seen on 07:13, 29. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am aware but I would…
Sat, 05/20/2023 - 21:34

I am aware but I would rather just scale up the existing biped model.

Last seen on 21:08, 7. Apr 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could create a replica…
Sun, 05/21/2023 - 12:56

you could create a replica of a biped model in geckolib

Last seen on 07:13, 29. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh I don't mean making the…
Sun, 05/21/2023 - 17:26

Oh I don't mean making the entity grow larger in an animation, I mean making an entity whose model is a scaled up version of the zombie/biped model, like the Giant.