Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

1.15 Entity Modeling ".getBox" not working


Adam1223
 Share

Recommended Posts

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);
    }

 

 

 

Link to comment
Share on other sites

 

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

Link to comment
Share on other sites

 

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);
       

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.