TUTORIAL - How to (Properlly) do Scaled Child/Baby mobs using Geckolib (Mcreator 2023)

Started by ninjawizard1234 on

Topic category: Help with modding (Java Edition)

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
TUTORIAL - How to (Properlly) do Scaled Child/Baby mobs using Geckolib (Mcreator 2023)

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);
	}
Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This way you dont need…
Sat, 11/18/2023 - 06:38

This way you dont need procedures to make baby mobs anymore, :)

Last seen on 01:03, 23. May 2024
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I also solved this dilemma,…
Thu, 12/21/2023 - 02:42

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

Last seen on 01:03, 23. May 2024
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But for someone who doesn't…
Thu, 12/21/2023 - 02:43

But for someone who doesn't have the plugin, this would help.