Posted September 1, 201411 yr I am attempting to animate my armor model. The model displays, but nothing is animated; the model just follows along the player. package timeTraveler.models; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelSlowTimeArmor extends ModelBiped { //fields ModelRenderer belt; ModelRenderer crystal; ModelRenderer star3; ModelRenderer star2; ModelRenderer star4; ModelRenderer star5; ModelRenderer handleft; ModelRenderer torso; ModelRenderer lid4; ModelRenderer handright; ModelRenderer star; ModelRenderer star1; ModelRenderer button; ModelRenderer frontpiece4; ModelRenderer frontpiece3; ModelRenderer helmet1; ModelRenderer helmet4; ModelRenderer helmet2; ModelRenderer helmet5; ModelRenderer crystal7; ModelRenderer helmet; ModelRenderer crystal3; ModelRenderer crystal4; ModelRenderer helmet3; ModelRenderer Shape15; ModelRenderer crystal5; ModelRenderer boots3; ModelRenderer leg1; ModelRenderer boots2; ModelRenderer frontpiece1; ModelRenderer boots1; ModelRenderer boots; ModelRenderer leg; ModelRenderer tube; ModelRenderer shouldercap1; ModelRenderer crystal6; ModelRenderer crysta7; ModelRenderer crystal8; ModelRenderer crystal9; ModelRenderer crystal10; ModelRenderer frontpiece2; ModelRenderer crystal11; ModelRenderer crystal12; ModelRenderer jar4; ModelRenderer shouldercap; ModelRenderer jar; ModelRenderer jar1; ModelRenderer jar2; ModelRenderer jar3; ModelRenderer lid; ModelRenderer lid1; ModelRenderer lid2; ModelRenderer lid3; public ModelSlowTimeArmor(float f) { super (f); textureWidth = 64; textureHeight = 64; belt = new ModelRenderer(this, 55, 14); belt.addBox(-1F, 1F, 0F, 1, 10, 3); belt.setRotationPoint(-2F, 0F, 1.8F); belt.setTextureSize(64, 64); belt.mirror = true; setRotation(belt, 0F, 0F, -0.5235988F); this.bipedBody.addChild(belt); crystal = new ModelRenderer(this, 0, 27); crystal.addBox(0F, 0F, 0F, 1, 4, 1); crystal.setRotationPoint(10.8F, -1.5F, 1F); crystal.setTextureSize(64, 64); crystal.mirror = true; setRotation(crystal, 0F, 0F, 0.7853982F); this.bipedLeftArm.addChild(crystal); star3 = new ModelRenderer(this, 2, 19); star3.addBox(0F, 0F, 0F, 1, 2, 2); star3.setRotationPoint(8.5F, 8.7F, -1.4F); star3.setTextureSize(64, 64); star3.mirror = true; setRotation(star3, 0.7853982F, 0F, 0F); this.bipedLeftArm.addChild(star3); star2 = new ModelRenderer(this, 2, 19); star2.addBox(0F, 0F, 0F, 1, 2, 2); star2.setRotationPoint(8.5F, 7.7F, -1F); star2.setTextureSize(64, 64); star2.mirror = true; setRotation(star2, 0F, 0F, 0F); this.bipedLeftArm.addChild(star2); star4 = new ModelRenderer(this, 2, 19); star4.addBox(0F, 0F, 0F, 1, 2, 2); star4.setRotationPoint(-9.5F, 7.7F, -1F); star4.setTextureSize(64, 64); star4.mirror = true; setRotation(star4, 0F, 0F, 0F); this.bipedRightArm.addChild(star4); star5 = new ModelRenderer(this, 2, 19); star5.addBox(0F, 0F, 0F, 1, 2, 2); star5.setRotationPoint(-9.5F, 8.7F, -1.5F); star5.setTextureSize(64, 64); star5.mirror = true; setRotation(star5, 0.7853982F, 0F, 0F); this.bipedRightArm.addChild(star5); handleft = new ModelRenderer(this, 0, 47); handleft.addBox(0F, -2F, -2.5F, 5, 12, 5); handleft.setRotationPoint(4F, 1F, 0F); handleft.setTextureSize(64, 64); handleft.mirror = true; setRotation(handleft, 0F, 0F, 0F); this.bipedLeftArm.addChild(handleft); torso = new ModelRenderer(this, 0, 0); torso.addBox(-4F, 0F, -2.5F, 8, 12, 5); torso.setRotationPoint(0F, 0F, 0F); torso.setTextureSize(64, 64); torso.mirror = true; setRotation(torso, 0F, 0F, 0F); this.bipedBody.addChild(torso); lid4 = new ModelRenderer(this, 0, 20); lid4.addBox(0F, 1F, 0F, 1, 1, 1); lid4.setRotationPoint(1.5F, 0.7F, 3F); lid4.setTextureSize(64, 64); lid4.mirror = true; setRotation(lid4, 0F, 0F, 1.047198F); this.bipedBody.addChild(lid4); handright = new ModelRenderer(this, 0, 47); handright.addBox(-5F, -2F, -2.5F, 5, 12, 5); handright.setRotationPoint(-4F, 1F, 0F); handright.setTextureSize(64, 64); handright.mirror = true; setRotation(handright, 0F, 0F, 0F); this.bipedRightArm.addChild(handright); star = new ModelRenderer(this, 0, 19); star.addBox(1F, 0F, 0F, 3, 3, 1); star.setRotationPoint(-2.5F, 1.5F, -3F); star.setTextureSize(64, 64); star.mirror = true; setRotation(star, 0F, 0F, 0F); this.bipedBody.addChild(star); star1 = new ModelRenderer(this, 0, 19); star1.addBox(0F, 0F, 0F, 3, 3, 1); star1.setRotationPoint(0F, 1F, -3F); star1.setTextureSize(64, 64); star1.mirror = true; setRotation(star1, 0F, 0F, 0.7853982F); this.bipedBody.addChild(star1); button = new ModelRenderer(this, 0, 41); button.addBox(0F, 0F, 0F, 2, 2, 1); button.setRotationPoint(-1F, 2F, -3.2F); button.setTextureSize(64, 64); button.mirror = true; setRotation(button, 0F, 0F, 0F); this.bipedBody.addChild(button); frontpiece4 = new ModelRenderer(this, 34, 55); frontpiece4.addBox(-5F, 0F, 0F, 5, 2, 1); frontpiece4.setRotationPoint(5F, -9F, -5.2F); frontpiece4.setTextureSize(64, 64); frontpiece4.mirror = true; setRotation(frontpiece4, 0F, 0F, -0.2617994F); this.bipedHead.addChild(frontpiece4); frontpiece3 = new ModelRenderer(this, 34, 55); frontpiece3.addBox(0F, 0F, 0F, 5, 2, 1); frontpiece3.setRotationPoint(-5F, -9F, -5.2F); frontpiece3.setTextureSize(64, 64); frontpiece3.mirror = true; setRotation(frontpiece3, 0F, 0F, 0.2617994F); this.bipedHead.addChild(frontpiece3); helmet1 = new ModelRenderer(this, 27, 27); helmet1.addBox(0F, 0F, 0F, 1, 5, 9); helmet1.setRotationPoint(4F, -8F, -4F); helmet1.setTextureSize(64, 64); helmet1.mirror = true; setRotation(helmet1, 0F, 0F, 0F); this.bipedHead.addChild(helmet1); helmet4 = new ModelRenderer(this, 27, 27); helmet4.addBox(0F, 0F, 0F, 1, 5, 9); helmet4.setRotationPoint(-5F, -8F, -4F); helmet4.setTextureSize(64, 64); helmet4.mirror = true; setRotation(helmet4, 0F, 0F, 0F); this.bipedHead.addChild(helmet4); helmet2 = new ModelRenderer(this, 22, 52); helmet2.addBox(0F, 0F, 0F, 10, 2, 10); helmet2.setRotationPoint(-5F, -10F, -5F); helmet2.setTextureSize(64, 64); helmet2.mirror = true; setRotation(helmet2, 0F, 0F, 0F); this.bipedHead.addChild(helmet2); helmet5 = new ModelRenderer(this, 34, 0); helmet5.addBox(0F, 0F, 0F, 1, 2, 10); helmet5.setRotationPoint(-5F, -3F, -5F); helmet5.setTextureSize(64, 64); helmet5.mirror = true; setRotation(helmet5, 0F, 0F, 0F); this.bipedHead.addChild(helmet5); crystal7 = new ModelRenderer(this, 18, 19); crystal7.addBox(0F, 0F, 0F, 1, 1, 4); crystal7.setRotationPoint(3.5F, -11.5F, -7F); crystal7.setTextureSize(64, 64); crystal7.mirror = true; setRotation(crystal7, -0.7853982F, 0F, 0F); this.bipedHead.addChild(crystal7); helmet = new ModelRenderer(this, 34, 0); helmet.addBox(0F, 0F, 0F, 1, 2, 10); helmet.setRotationPoint(4F, -3F, -5F); helmet.setTextureSize(64, 64); helmet.mirror = true; setRotation(helmet, 0F, 0F, 0F); this.bipedHead.addChild(helmet); crystal3 = new ModelRenderer(this, 29, 19); crystal3.addBox(0F, 0F, 0F, 1, 4, 1); crystal3.setRotationPoint(3.5F, -14.8F, -7.7F); crystal3.setTextureSize(64, 64); crystal3.mirror = true; setRotation(crystal3, 0F, 0F, 0F); this.bipedHead.addChild(crystal3); crystal4 = new ModelRenderer(this, 18, 19); crystal4.addBox(0F, 0F, 0F, 1, 1, 4); crystal4.setRotationPoint(-4.5F, -11.5F, -7F); crystal4.setTextureSize(64, 64); crystal4.mirror = true; setRotation(crystal4, -0.7853982F, 0F, 0F); this.bipedHead.addChild(crystal4); helmet3 = new ModelRenderer(this, 22, 43); helmet3.addBox(0F, 0F, 0F, 8, 7, 1); helmet3.setRotationPoint(-4F, -8F, 4F); helmet3.setTextureSize(64, 64); helmet3.mirror = true; setRotation(helmet3, 0F, 0F, 0F); this.bipedHead.addChild(helmet3); Shape15 = new ModelRenderer(this, 28, 0); Shape15.addBox(0F, 0F, 0F, 1, 2, 1); Shape15.setRotationPoint(-4F, -3F, -5F); Shape15.setTextureSize(64, 64); Shape15.mirror = true; setRotation(Shape15, 0F, 0F, 0F); this.bipedHead.addChild(Shape15); crystal5 = new ModelRenderer(this, 29, 19); crystal5.addBox(0F, 0F, 0F, 1, 4, 1); crystal5.setRotationPoint(-4.5F, -14.8F, -7.7F); crystal5.setTextureSize(64, 64); crystal5.mirror = true; setRotation(crystal5, 0F, 0F, 0F); this.bipedHead.addChild(crystal5); boots3 = new ModelRenderer(this, 0, 0); boots3.addBox(0F, 0F, 0F, 6, 4, 6); boots3.setRotationPoint(0F, 20F, -3F); boots3.setTextureSize(64, 64); boots3.mirror = true; setRotation(boots3, 0F, 0F, 0F); this.bipedLeftLeg.addChild(boots3); leg1 = new ModelRenderer(this, 0, 0); leg1.addBox(-2.5F, 0F, -2.5F, 5, 8, 5); leg1.setRotationPoint(2.5F, 12F, 0F); leg1.setTextureSize(64, 64); leg1.mirror = true; setRotation(leg1, 0F, 0F, 0F); this.bipedLeftLeg.addChild(leg1); boots2 = new ModelRenderer(this, 0, 7); boots2.addBox(-3F, 0F, -3F, 6, 2, 3); boots2.setRotationPoint(3F, 22F, -3F); boots2.setTextureSize(64, 64); boots2.mirror = true; setRotation(boots2, 0F, 0F, 0F); this.bipedLeftLeg.addChild(boots2); frontpiece1 = new ModelRenderer(this, 28, 0); frontpiece1.addBox(0F, 0F, 0F, 1, 2, 1); frontpiece1.setRotationPoint(3F, -3F, -5F); frontpiece1.setTextureSize(64, 64); frontpiece1.mirror = true; setRotation(frontpiece1, 0F, 0F, 0F); this.bipedHead.addChild(frontpiece1); boots1 = new ModelRenderer(this, 0, 0); boots1.addBox(0F, 0F, 0F, 6, 4, 6); boots1.setRotationPoint(-6F, 20F, -3F); boots1.setTextureSize(64, 64); boots1.mirror = true; setRotation(boots1, 0F, 0F, 0F); this.bipedRightLeg.addChild(boots1); boots = new ModelRenderer(this, 0, 7); boots.addBox(-3F, 0F, -3F, 6, 2, 3); boots.setRotationPoint(-3F, 22F, -3F); boots.setTextureSize(64, 64); boots.mirror = true; setRotation(boots, 0F, 0F, 0F); this.bipedRightLeg.addChild(boots); leg = new ModelRenderer(this, 0, 0); leg.addBox(-2.5F, 0F, -2.5F, 5, 8, 5); leg.setRotationPoint(-2.5F, 12F, 0F); leg.setTextureSize(64, 64); leg.mirror = true; setRotation(leg, 0F, 0F, 0F); this.bipedRightLeg.addChild(leg); tube = new ModelRenderer(this, 12, 26); tube.addBox(0F, 0F, 0F, 1, 6, 1); tube.setRotationPoint(-1F, 4F, -2.8F); tube.setTextureSize(64, 64); tube.mirror = true; setRotation(tube, 0F, 0F, 0.2617994F); this.bipedBody.addChild(tube); shouldercap1 = new ModelRenderer(this, 0, 40); shouldercap1.addBox(0F, 0F, 0F, 2, 1, 2); shouldercap1.setRotationPoint(6F, -1.5F, -1F); shouldercap1.setTextureSize(64, 64); shouldercap1.mirror = true; setRotation(shouldercap1, 0F, 0F, 0F); this.bipedLeftArm.addChild(shouldercap1); crystal6 = new ModelRenderer(this, 0, 27); crystal6.addBox(0F, 0F, 0F, 1, 3, 1); crystal6.setRotationPoint(10.5F, -3.8F, -2F); crystal6.setTextureSize(64, 64); crystal6.mirror = true; setRotation(crystal6, 0F, 0F, 0F); this.bipedLeftArm.addChild(crystal6); crysta7 = new ModelRenderer(this, 0, 27); crysta7.addBox(-1F, 0F, 0F, 1, 4, 1); crysta7.setRotationPoint(-10.8F, -1.5F, -2F); crysta7.setTextureSize(64, 64); crysta7.mirror = true; setRotation(crysta7, 0F, 0F, -0.7853982F); this.bipedRightArm.addChild(crysta7); crystal8 = new ModelRenderer(this, 0, 27); crystal8.addBox(-1F, 0F, 0F, 1, 4, 1); crystal8.setRotationPoint(-10.8F, -1.5F, 1F); crystal8.setTextureSize(64, 64); crystal8.mirror = true; setRotation(crystal8, 0F, 0F, -0.7853982F); this.bipedRightArm.addChild(crystal8); crystal9 = new ModelRenderer(this, 0, 27); crystal9.addBox(-1F, 0F, 0F, 1, 3, 1); crystal9.setRotationPoint(-10.5F, -3.8F, -2F); crystal9.setTextureSize(64, 64); crystal9.mirror = true; setRotation(crystal9, 0F, 0F, 0F); this.bipedRightArm.addChild(crystal9); crystal10 = new ModelRenderer(this, 0, 27); crystal10.addBox(0F, 0F, 0F, 1, 4, 1); //crystal10.setRotationPoint(10.8F, -1.5F, -2F); crystal10.setRotationPoint(0F, 0F, 0F); crystal10.setTextureSize(64, 64); crystal10.mirror = true; setRotation(crystal10, 0F, 0F, 0.7853982F); //this.bipedLeftArm.addChild(crystal10); frontpiece2 = new ModelRenderer(this, 34, 55); frontpiece2.addBox(-1F, 0F, 0F, 2, 4, 1); frontpiece2.setRotationPoint(0F, -9F, -5F); frontpiece2.setTextureSize(64, 64); frontpiece2.mirror = true; setRotation(frontpiece2, -0.2268928F, 0F, 0F); this.bipedHead.addChild(frontpiece2); crystal11 = new ModelRenderer(this, 0, 27); crystal11.addBox(-1F, 0F, 0F, 1, 3, 1); crystal11.setRotationPoint(-10.5F, -3.8F, 1F); crystal11.setTextureSize(64, 64); crystal11.mirror = true; setRotation(crystal11, 0F, 0F, 0F); this.bipedRightArm.addChild(crystal11); crystal12 = new ModelRenderer(this, 0, 27); crystal12.addBox(0F, 0F, 0F, 1, 3, 1); crystal12.setRotationPoint(10.5F, -3.8F, 1F); crystal12.setTextureSize(64, 64); crystal12.mirror = true; setRotation(crystal12, 0F, 0F, 0F); this.bipedLeftArm.addChild(crystal12); jar4 = new ModelRenderer(this, 10, 39); jar4.addBox(0F, 0F, 0F, 2, 3, 2); jar4.setRotationPoint(-0.4F, 1F, 2.5F); jar4.setTextureSize(64, 64); jar4.mirror = true; setRotation(jar4, 0F, 0F, 1.047198F); this.bipedBody.addChild(jar4); shouldercap = new ModelRenderer(this, 0, 40); shouldercap.addBox(0F, 0F, 0F, 2, 1, 2); shouldercap.setRotationPoint(-8F, -1.5F, -1F); shouldercap.setTextureSize(64, 64); shouldercap.mirror = true; setRotation(shouldercap, 0F, 0F, 0F); this.bipedRightArm.addChild(shouldercap); jar = new ModelRenderer(this, 10, 39); jar.addBox(0F, 0F, 0F, 2, 3, 2); jar.setRotationPoint(-3F, 9F, -4.5F); jar.setTextureSize(64, 64); jar.mirror = true; setRotation(jar, 0F, 0F, 0F); this.bipedBody.addChild(jar); jar1 = new ModelRenderer(this, 10, 39); jar1.addBox(0F, 0F, 0F, 2, 3, 2); jar1.setRotationPoint(3F, 7F, 2.5F); jar1.setTextureSize(64, 64); jar1.mirror = true; setRotation(jar1, 0F, 0F, 1.047198F); this.bipedBody.addChild(jar1); jar2 = new ModelRenderer(this, 10, 39); jar2.addBox(0F, 0F, 0F, 2, 3, 2); jar2.setRotationPoint(1.9F, 5F, 2.5F); jar2.setTextureSize(64, 64); jar2.mirror = true; setRotation(jar2, 0F, 0F, 1.047198F); this.bipedBody.addChild(jar2); jar3 = new ModelRenderer(this, 10, 39); jar3.addBox(0F, 0F, 0F, 2, 3, 2); jar3.setRotationPoint(0.8F, 3F, 2.5F); jar3.setTextureSize(64, 64); jar3.mirror = true; setRotation(jar3, 0F, 0F, 1.047198F); this.bipedBody.addChild(jar3); lid = new ModelRenderer(this, 0, 20); lid.addBox(0F, 0F, 0F, 1, 1, 1); lid.setRotationPoint(-2.5F, 8.5F, -4F); lid.setTextureSize(64, 64); lid.mirror = true; setRotation(lid, 0F, 0F, 0F); this.bipedBody.addChild(lid); lid1 = new ModelRenderer(this, 0, 20); lid1.addBox(0F, 1F, 0F, 1, 1, 1); lid1.setRotationPoint(4.5F, 6.5F, 3F); lid1.setTextureSize(64, 64); lid1.mirror = true; setRotation(lid1, 0F, 0F, 1.047198F); this.bipedBody.addChild(lid1); lid2 = new ModelRenderer(this, 0, 20); lid2.addBox(0F, 1F, 0F, 1, 1, 1); lid2.setRotationPoint(3.5F, 4.5F, 3F); lid2.setTextureSize(64, 64); lid2.mirror = true; setRotation(lid2, 0F, 0F, 1.047198F); this.bipedBody.addChild(lid2); lid3 = new ModelRenderer(this, 0, 20); lid3.addBox(0F, 1F, 0F, 1, 1, 1); lid3.setRotationPoint(2.5F, 2.7F, 3F); lid3.setTextureSize(64, 64); lid3.mirror = true; setRotation(lid3, 0F, 0F, 1.047198F); this.bipedBody.addChild(lid3); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { //super.render(entity, f, f1, f2, f3, f4, f5); super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); belt.render(f5); crystal.render(f5); star3.render(f5); star2.render(f5); star4.render(f5); star5.render(f5); handleft.render(f5); torso.render(f5); lid4.render(f5); handright.render(f5); star.render(f5); star1.render(f5); button.render(f5); frontpiece4.render(f5); frontpiece3.render(f5); helmet1.render(f5); helmet4.render(f5); helmet2.render(f5); helmet5.render(f5); crystal7.render(f5); helmet.render(f5); crystal3.render(f5); crystal4.render(f5); helmet3.render(f5); Shape15.render(f5); crystal5.render(f5); boots3.render(f5); leg1.render(f5); boots2.render(f5); frontpiece1.render(f5); boots1.render(f5); boots.render(f5); leg.render(f5); tube.render(f5); shouldercap1.render(f5); crystal6.render(f5); crysta7.render(f5); crystal8.render(f5); crystal9.render(f5); crystal10.render(f5); frontpiece2.render(f5); crystal11.render(f5); crystal12.render(f5); jar4.render(f5); shouldercap.render(f5); jar.render(f5); jar1.render(f5); jar2.render(f5); jar3.render(f5); lid.render(f5); lid1.render(f5); lid2.render(f5); lid3.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } }
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.