Jump to content

entity model error


Spring

Recommended Posts

QQ%E6%88%AA%E5%9B%BE20220102191455.png

 

block bench:

QQ%E6%88%AA%E5%9B%BE20220102191619.png

 

my entity model,export use java model

 

    private final ModelRenderer renderer;

    public SkyLanternModel() {
        texWidth = 16;
        texHeight = 16;

        renderer = new ModelRenderer(this);
        renderer.setPos(0.0F, 18.0F, 0.0F);
        renderer.texOffs(3, 3).addBox(-5.0F, -8.5F, -5.0F, 10.0F, 0.0F, 10.0F, 0.0F, false);
        renderer.texOffs(0, 25).addBox(-5.5F, -8.0F, -5.5F, 11.0F, 0.0F, 11.0F, 0.0F, false);
        renderer.texOffs(0, 0).addBox(-6.0F, -7.5F, -6.0F, 12.0F, 13.0F, 12.0F, 0.0F, false);
    }

    @Override
    public void setupAnim(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw,
                          float headPitch) {
    }

    @Override
    public void renderToBuffer(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay,
                               float red, float green, float blue, float alpha) {
        renderer.render(matrixStack, buffer, packedLight, packedOverlay);
    }

    public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
        modelRenderer.xRot = x;
        modelRenderer.yRot = y;
        modelRenderer.zRot = z;
    }

 

There is a problem with his rendering, how to make it work

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