Scale a Mob on the Code

Started by gustavowizard123 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Scale a Mob on the Code

Hey guys! nice software btw;

 

how do i change the code of a Mob to scale its model down/up? i use to do it easy on MCreator 1.8 for MC 1.12, but i cant do bananas with new Mcreator 2020 for MC 1.15... can someone please light my way here?

 

thanks!

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
boy you really don't know…
Sat, 06/13/2020 - 07:26

boy you really don't know how to code at all huh

replace ms.push() to matrixStack.push(), basically where Op told you to put ms.whatever change to matrixStack.whatever

i suggest learning some java before you try to modify any code, it may be useful and fun

 

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh shoot! Sorry for being…
Sat, 06/13/2020 - 10:36

Oh shoot! Sorry for being too silly XD

And thank you guys so much!

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah if anyone need on 1.15…
Mon, 04/12/2021 - 01:54

yeah if anyone need on 1.15 its like this:

 

matrixStack.push();
            matrixStack.scale(0.2f, 0.2f, 0.2f);
            matrixStack.translate(0F, 5.8F, 0F);
            
            egg_entity.render(matrixStack, buffer, packedLight, packedOverlay);  <------- your mob stuff

            matrixStack.pop();

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this looks super useful!…
Mon, 04/12/2021 - 06:12

this looks super useful! though I have a question: how do I make this work for ageable entities to scale their baby models down? I need it for my mod so that I could make the baby model of my animal entity small just like baby animals in vanilla MC. where can I learn that?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what i need to do?  …
Fri, 04/16/2021 - 13:26

what i need to do? 

@Override
        public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                float alpha) {
            group.render(matrixStack, buffer, packedLight, packedOverlay);
        }
        public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
            modelRenderer.rotateAngleX = x;
            modelRenderer.rotateAngleY = y;
            modelRenderer.rotateAngleZ = z;
        }