Posted April 28, 20205 yr I cannot get my .getBox to work for some reason, any thoughts? public GoatEntityModel() { textureWidth = 64; textureHeight = 64; Body = new ModelRenderer(this); Body.setRotationPoint(0.0F, 24.0F, 0.0F); Torso = new ModelRenderer(this); Torso.setRotationPoint(0.0F, 0.0F, 0.0F); Body.addChild(Torso); Torso.setTextureOffset(0, 0).addBox(-4.0F, -7.0F, -4.0F, 7.0F, 4.0F, 8.0F, 0.0F, false); Head = new ModelRenderer(this); Head.setRotationPoint(0.0F, 0.0F, 0.0F); Body.addChild(Head); Head.setTextureOffset(0, 0).addBox(-2.0F, -8.0F, -7.0F, 3.0F, 3.0F, 3.0F, 0.0F, false); Legs = new ModelRenderer(this); Legs.setRotationPoint(0.0F, 0.0F, 0.0F); Body.addChild(Legs); Front = new ModelRenderer(this); Front.setRotationPoint(0.0F, 0.0F, 0.0F); Legs.addChild(Front); FrontRight = new ModelRenderer(this); FrontRight.setRotationPoint(0.0F, 0.0F, 0.0F); Front.addChild(FrontRight); FrontRight.setTextureOffset(0, 12).addBox(-4.0F, -3.0F, -4.0F, 1.0F, 3.0F, 1.0F, 0.0F, false); FrontLeft = new ModelRenderer(this); FrontLeft.setRotationPoint(0.0F, 0.0F, 0.0F); Front.addChild(FrontLeft); FrontLeft.setTextureOffset(0, 0).addBox(2.0F, -3.0F, -4.0F, 1.0F, 3.0F, 1.0F, 0.0F, false); Back = new ModelRenderer(this); Back.setRotationPoint(0.0F, 0.0F, 0.0F); Legs.addChild(Back); BackRight = new ModelRenderer(this); BackRight.setRotationPoint(0.0F, 0.0F, 0.0F); Back.addChild(BackRight); BackRight.setTextureOffset(0, 0).addBox(-4.0F, -3.0F, 3.0F, 1.0F, 3.0F, 1.0F, 0.0F, false); BackLeft = new ModelRenderer(this); BackLeft.setRotationPoint(0.0F, 0.0F, 0.0F); Back.addChild(BackLeft); BackLeft.setTextureOffset(0, 0).addBox(2.0F, -3.0F, 3.0F, 1.0F, 3.0F, 1.0F, 0.0F, false); }
April 29, 20205 yr It is obfuscated, I think that is how it is used .func_228300_a_ for example: leftshoe.func_228300_a_(-2.5F, 9.1F, -2.5F, 5, 3, 5); yourfield.func_228300_a_(position, dimensions); I don't speak English, I hope to be of help
April 29, 20205 yr also add the parameters of setTextureOffset as you use it you are adding the same texture to all parts
April 29, 20205 yr after checking your code I got confused, I think it should look like this: torso = new ModelRenderer(this, 16, 32); /////////////(parameters of setTexture) torso.func_228300_a_(-4.0F, -7.0F, -4.0F, 7.0F, 4.0F, 8.0F, 0.0F); torso.setRotationPoint(0F, 0F, 0F);
April 30, 20205 yr addBox is definitely still there, do check out the ModelRenderer class. If yours is obfuscated, do update your mcp
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.