Started by
gustavowizard123
on
Topic category: Help with Minecraft modding (Java Edition)
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!
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
Oh shoot! Sorry for being too silly XD
And thank you guys so much!
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();
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?
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;
}