Jump to content

How do i set mirrored texturing on entity-model


Drachenbauer

Recommended Posts

Hello

 

Theese are two modelboxes in 1.14.3 style:

        bone.cubeList.add(new ModelBox(bone, 0, 2, -3.0F, -10.0F, 0.0F, 2, 6, 0, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 2, 1.0F, -10.0F, 0.0F, 2, 6, 0, 0.0F, true));

the boolean at the end means, that the seccond one has the texture mirrored.

How do i set this property now?

 

At the iron golem i found this:

this.ironGolemRightLeg.mirror = true;

But this mirrors the textures of the whoole body-part.

I only want to mirror the texture of one cube.

I don´t want to put it into a new ModelRenderer, only to mirror it´s texture.

Edited by Drachenbauer
Link to comment
Share on other sites

  • 3 weeks later...

Now i try the following:

        bone = new ModelRenderer(this);
        bone.setRotationPoint(0.0F, 20.0F, 0.0F);
        bone.func_217178_a("body", -4.0F, -4.0F, -4.0F, 8, 8, 8, 0.0F, 0, 0);
        bone.func_217178_a("beak", -1.0F, 0.0F, -7.0F, 2, 2, 3, 0.0F, 24, 0);
        bone.func_217178_a("right_head_feather", -3.0F, -10.0F, 0.0F, 2, 6, 0, 0.0F, 0, 2);
        bone.mirror=true;
        bone.func_217178_a("left_head_feather", 1.0F, -10.0F, 0.0F, 2, 6, 0, 0.0F, 0, 2);
        bone.mirror=false;
        bone.func_217178_a("tail_feather_1", 0.0F, 1.0F, 4.0F, 0, 1, 4, 0.0F, 24, 1);

Does this mirror only the textures of the model-box between the two mitrror-lines?

Edited by Drachenbauer
Link to comment
Share on other sites

You can see tutorials for the 1.12.2 then you want modify your texture. Import your mob into Tabula, import his texture, use the mirrored GUI and export the new Model as Java vlass with the new Texture. Then in your IDE change the code for make it compatible with the 1.15.1 and finaly enjoy.

New in Modding? == Still learning!

Link to comment
Share on other sites

  • 2 weeks later...

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...

×   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.

Announcements



×
×
  • Create New...

Important Information

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