Started by
JohnMcMichael
on
Topic category: Help with Minecraft modding (Java Edition)
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;
});
}
}
}
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!
I am aware but I would rather just scale up the existing biped model.
you could create a replica of a biped model in geckolib
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.