Jump to content

[TileEntitySpecialRenderer] Binding Block Texture does not work properly


Recommended Posts

Posted

Hello.

 

I have a customizable block, and when it is right clicked with an ItemBlock it changes the blocks texture depending on its mode (Shift-RightClick changes it Border/Filler)

 

When it is placed it looks like this:

Ft2ml7P.png

 

When right clicked with something other than glass (Glass sets a custom texture) it will look like this

8g3V7.jpg

My Block LEFT What I want the texture inside to look like RIGHT

 

TileEntity Code:

 

  Reveal hidden contents

 

Renderer Code:

 

  Reveal hidden contents

 

ModelFiller Code:

 

  Reveal hidden contents

 

ModelBorder Code:

 

  Reveal hidden contents

 

 

Thanks

Posted

Hi

 

It looks to me like there might be a mismatch in the texture scaling;

 

Your renderer thinks that it should only use 8 texels wide instead of the 16.

 

Pure guesswork, since I'm not familiar with ModelRendering:

 

Perhaps something to do with this

textureWidth = 32;
    textureHeight = 32;
    
      Left = new ModelRenderer(this, 0, 0);
      Left.addBox(0F, 0F, 0F, 1, 14, 14);
      Left.setRotationPoint(7F, 9F, -7F);
      Left.setTextureSize(64, 64);    // why 64 here, but 32 above?

Alternatively, perhaps these numbers don't match the actual number of pixels in the image you're using for the texture?

 

-TGG

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.