Posted February 25, 20178 yr So I made my own mob and everything is fine and the model loads properly, the problem starts when it looks around or walks... It has a nose but when it looks around the nose doesn't move with the head but moves with the body, also the legs swing way to far when it walks around. Let me know if you need more code to help me. Model Class: package masterminer.mods.entity; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelQuadruped; import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.Entity; import net.minecraft.util.math.MathHelper; public class ModelBoar extends ModelQuadruped { public ModelBoar() { super(12, 0.0F); this.head = new ModelRenderer(this, 0, 0); this.head.addBox(-4.0F, -4.0F, -8.0F, 8, 8, 8, 0.0F); this.head.setRotationPoint(0.0F, 12.0F, -6.0F); this.head.addBox(-5.0F, -5.0F, -4.0F, 1, 3, 1, 0.0F); this.head.addBox(4.0F, -5.0F, -4.0F, 1, 3, 1, 0.0F); this.head.setTextureSize(64, 64); this.body = new ModelRenderer(this, 18, 4); this.body.addBox(-6.0F, -10.0F, -7.0F, 12, 18, 10, 0.0F); this.body.setRotationPoint(0.0F, 5.0F, 2.0F); this.body.addBox(-2.0F, 2.0F, -8.0F, 4, 6, 1); --this.leg1.rotationPointX; ++this.leg2.rotationPointX; this.leg1.rotationPointZ += 0.0F; this.leg2.rotationPointZ += 0.0F; --this.leg3.rotationPointX; ++this.leg4.rotationPointX; --this.leg3.rotationPointZ; --this.leg4.rotationPointZ; this.childZOffset += 2.0F; } }
February 25, 20178 yr Well check out the normal minecraft classes and see how they do it! Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
February 25, 20178 yr Author 52 minutes ago, Leomelonseeds said: Well check out the normal minecraft classes and see how they do it! this is a copy/paste + some editing of a normal minecraft class.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.