Jump to content

[1.7.2] Animated texture from resource packs in my blocks


ColdFox

Recommended Posts

I've several custom blocks that use the textures from the game. So if you load a resource pack, they also use those textures.

The problem that I'm facing now is when they try to use a animated texture. The renderer resizes the texture and applies it to the block, like so:

OWQe95t.png

 

 

Link to comment
Share on other sites

I've several custom blocks that use the textures from the game. So if you load a resource pack, they also use those textures.

The problem that I'm facing now is when they try to use a animated texture. The renderer resizes the texture and applies it to the block, like so:

OWQe95t.png

Animated textures load as an animation time strip. If you want to keep the animation, the use the size of just the frame and allow it to tick.  Either way, use the single frame size, not the strip size.

Link to comment
Share on other sites

I've several custom blocks that use the textures from the game. So if you load a resource pack, they also use those textures.

The problem that I'm facing now is when they try to use a animated texture. The renderer resizes the texture and applies it to the block, like so:

OWQe95t.png

Animated textures load as an animation time strip. If you want to keep the animation, the use the size of just the frame and allow it to tick.  Either way, use the single frame size, not the strip size.

 

I managed to force the size to 14x14 but the thing is that I only want that when the texture is animated. Is there any way to get the resource pack path?

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.