minecraft-dev / MinecraftDev

Plugin for IntelliJ IDEA that gives special support for Minecraft modding projects.
https://minecraftdev.org/
GNU Lesser General Public License v3.0
1.51k stars 187 forks source link

Add ability to view animated image based on image.png.mcmeta #380

Open LatvianModder opened 6 years ago

LatvianModder commented 6 years ago

Either as tool window or directly in file viewer, but it would be nice to test animated block/item icons without reloading resources every time

Example mcmeta and the image image

{
    "animation": {
        "frametime": 3,
        "frames": [{"index": 0,"time": 3},1,2,3,{"index": 4,"time": 3},3,2,1]
    }
}
DenWav commented 6 years ago

This one is interesting...can't say I'm familiar with mcmeta (though it doesn't look that complicated). But this doesn't seem quite as out there as the model viewer feature request, so we'll see.

LatvianModder commented 6 years ago

It only has frametime, which is how many ticks each frame takes (so that's 50ms * number) and frames, which is the sequence of frames. If texture has 4 frames, the values can only go from 0-3, and each will take one frametime. Only special case is {"index": 0,"time": 3} which is equal to 0,0,0

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

DenWav commented 6 years ago

I'll mark this as accepted for now, don't know if I'll get to this soon though.