Started by
ninjawizard1234
on
Topic category: Help with Minecraft modding (Java Edition)
Ok so this drove me crazy for 3 days and i got not much help, so i decide to help by doing this simple tutorial:
-GeckoLib Generates its own .renderer file of each mob, you lock the file, edit it the renderer; on the last part, change to this:
@Override
public void preRender(PoseStack poseStack, SpiderTarantulaMexicanEntity entity, BakedGeoModel model, MultiBufferSource bufferSource, VertexConsumer buffer, boolean isReRender, float partialTick, int packedLight, int packedOverlay, float red,
float green, float blue, float alpha) {
if(entity.isBaby()) {
poseStack.scale (0.1f, 0.1f, 0.1f);
} else {
poseStack.scale (0.2f, 0.2f, 0.2f);
}
//this.scaleHeight = scale;
//this.scaleWidth = scale;
super.preRender(poseStack, entity, model, bufferSource, buffer, isReRender, partialTick, packedLight, packedOverlay, red, green, blue, alpha);
}
This way you dont need procedures to make baby mobs anymore, :)
I also solved this dilemma, but in a different way in the model file, which works because I already use the Kleiders Custom Renderer plugin
But for someone who doesn't have the plugin, this would help.