Animated Mod Menu Icons (AMMI) 为 Mod Menu 添加了对使用 Minecraft .mcmeta 动画格式的模组动态图标的支持。此模组允许其他模组在 Mod Menu 中提供动态图标。未包含动态图标的模组不受影响。
AMMI 自身使用的动态图标作为示例展示了可实现的效果。原始图标设计的版权归 Mod Menu 所有。
使用方法:
保留你现有的静态图标,用于 AMMI 未安装的情况:
assets/examplemod/icon.png
然后在旁边添加一个动态版本:
assets/examplemod/icon.animation.png
assets/examplemod/icon.animation.png.mcmeta
你无需在 fabricmod.json 中添加或更改任何内容,AMMI 会自动检测 icon.animation.png 并在其安装时使用它。如果未安装 AMMI,Mod Menu 将仅显示普通的静态图标。
动画
动画使用 Minecraft 的 .mcmeta 格式,因此其行为与资源包中的动态纹理完全一致。你所需要做的只是堆叠你想要构成 Minecraft 中动态纹理的各个帧。
你可以使用 ,因为它可以将 gif 转换为动态纹理并生成 mcmeta 文件。
动态图像应为正方形帧的垂直条带。
icon.animation.png 示例:

在游戏中显示效果如下:

Animated Mod Menu Icons (AMMI) adds support for animated mod icons in Mod Menu using Minecraft's .mcmeta animation format. This mod enables other mods to provide animated icons in Mod Menu. Mods that don't include animated icons are unaffected.
The animated icon used by AMMI itself is included as an example of what is possible. Credit for the original icon design goes to Mod Menu.
How to use:
Keep your existing icon for when AMMI is not installed:
assets/examplemod/icon.png
Then add an animated version alongside it:
assets/examplemod/icon.animation.png
assets/examplemod/icon.animation.png.mcmeta
You dont need to add or change anything in your fabricmod.json, AMMI will automatically detect icon.animation.png and use it whenever it is installed. If AMMI isn't present, Mod Menu will simply display the normal static icon.
Animation
Animations use Minecraft's .mcmeta format, so they behave exactly like animated textures in resource packs. All you need to do is stack the frames that you would like to animate an animated texture in Minecraft.
You could use , as it lets you convert a gif to an animated texture and generate the mcmeta file.
The animated image should be a vertical strip of square frames.
Example icon.animation.png:

Which appears like this in-game:

评论 0
登录后参与评分
还没有评论,来抢沙发吧