Skip to content

Convert an animated Minecraft texture (sprite PNG + MCMETA descriptor) to an animated GIF

Notifications You must be signed in to change notification settings

thjungers/mcmeta2gif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

mcmeta2gif

Convert an animated Minecraft texture (sprite PNG + MCMETA descriptor) to an animated GIF

Usage

python mcmeta2gif.py path/to/texture.png

Requires a texture.png.mcmeta within the same folder, containing at least a 'animation' dictionary (full description: see https://minecraft.gamepedia.com/Resource_Pack#Animation).

Editable parameters:

  • TARGET_SIZE: the output gif is a square of TARGET_SIZE × TARGET_SIZE pixels
  • TIME_UNIT: the time per frame in milliseconds for the output gif

Requirements

  • Python 3
  • PIL
  • numpy

About

Convert an animated Minecraft texture (sprite PNG + MCMETA descriptor) to an animated GIF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages