Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

 

 

 

 

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

 

also add the parameters of setTextureOffset as you use it you are adding the same texture to all parts

 

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.