Started by
West0nD3v
on
Topic category: Help with Minecraft modding (Java Edition)
so im creating a mod inspired by the between lands, and i created a mob called the lockjaw. it was supposed to be the size of a smaller iron golem, but it came out shorter than the player, any help?
note: its already textured
What version of Minecraft is your mod for?
1.17 if im correct
Try this.
The "main.render' part only applies to my model. "Main' is the name of my model's cube. For you, it'll be "(name of your cube).render" and you'll likely have multiple cubes.
Go to your (name of entity).Java file, it's the same .Java file that you upload when you're uploading a model (Here is an image that shows how to get to this file), and replace the line of code that says this.
"@Override
public void renderToBuffer(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay,"
With "@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);"
After the (part name).render stuff, copy and paste this
"poseStack.popPose();"
Should look similar to this image (the "main.render" to "back_left_left.render" part will be different for you. It'll have the names of your entity models cubes.
When i do this my model just falls through the floor and i only see its head sticking out
Try adjusting bounding boxes