(SOLVED) Mob custom baby model

Started by I dont speak english on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(SOLVED) Mob custom baby model
Thu, 12/16/2021 - 16:01 (edited)

I want to create a baby model of a mob. But I don't know how to do it and make it look the same as the mob. Whenever I shrink the mob in Blockbench, the texture is not left. How do I make a baby model? If they tell me explained and with images I would appreciate it.

Edited by I dont speak english on Thu, 12/16/2021 - 16:01
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can do this in the…
Thu, 12/16/2021 - 20:23

You can do this in the rendering process. Here is a good guide on how to do such. The guide is however outdated if you're making your mod for 1.17. I'd still recommend following the guide if you're making a mod for 1.17, but instead of typing

"@Override

public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay,

        float red, float green, float blue,
                float alpha) {
            matrixStack.push();
            matrixStack.translate(0f, 1.5f - 0.5 * 1.5f, 0f);
            matrixStack.scale(0.5f, 0.5f, 0.5f);
            main.render(matrixStack, buffer, packedLight, packedOverlay);
            matrixStack.pop();"

type this instead

"@Override
    public void renderToBuffer(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay,
            float red, float green, float blue, float alpha) {
            poseStack.pushPose();
            poseStack.translate(0f, 1.5f - 0.5 * 1.5f, 0f);
            poseStack.scale(0.5f, 0.5f, 0.5f);
        main.render(poseStack, buffer, packedLight, packedOverlay);
            poseStack.popPose();
    }"

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know whether or not…
Sat, 03/26/2022 - 16:23

I don't know whether or not this is outdated already, but I cannot find where to put the code.

I am using "MCreator 2021.3" on version 1.17.1.

I am trying to make a cave spider variant (Jungle Spider) by scaling down the built in spider preset.

The guide you linked seems very straightforward.

However, even with ctrl+f I can't even find the word ''packedOverlay'' in any of the mob's code.

Which acording to the guide is the end of the original code I need to edit.

So I am at a loss, I don't know if I need to find this somewhere else or if I am wasting my time because it is already outdated.

Or maybe this only works with custom models, I have no idea.

Any help is appreciated.