Jump to content

Is there any way to animate textures by using separate texture.png files?


Vulcandium

Recommended Posts

You can look at vanilla assets for how to do animated textures, it is very simple to do it manually like you would for a texture pack, with only one PNG and one simple JSON file. See e.g. prismarine for a block, or check out the vanilla wiki:

https://minecraft.wiki/w/Resource_pack#Animation

Basically, instead of having a 16x16 texture, you have a 16x(16 * number of frames) texture, and each 16x16 area is one animation frame, stacked vertically. I don't think you can do this with separate PNG files, but it should be easy enough to stack up your different textures into one PNG using any image editor.

Then you need a mcmeta file which describes what order the frames go in, and how long each frame is. If your texture is animated_texture.png, the meta file is animated_texture.png.mcmeta. See vanilla textures or the vanilla wiki for what that file looks like.

 

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.



×
×
  • Create New...

Important Information

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