AACMD
AACMD(Another Armor Custom Model Data)是一个为类原版护甲物品提供 CustomModelData 支持的模组。
本模组受 ArmorCustomModelData 启发,旨在作为我朋友作品的一项技术解决方案。
它能做什么?
上述内容应当已经很清楚。
从技术上讲,“类原版护甲物品”指的是基于原版 ArmorItem 类实现的护甲物品。
因此,拥有自定义渲染器的护甲不会被此模组支持,因为我不知道它们是如何获取护甲纹理的,也不知道它们是使用原版护甲模型还是自己的几何模型。
据我所知,这些护甲通常通过 Fabric Render API 注册,并实现了 Fabric 的 ArmorRenderer 接口,或者在其他平台上实现类似的功能。
为什么制作它?
我知道模组开发者可以通过模组 API 注册他们自己的护甲,所以这个模组不是为他们准备的。
这个模组面向的是那些希望以更接近原版的方式,在他们接受模组的大型项目中添加大量自定义护甲纹理的开发者。
如何使用?
只需将此模组安装到你的“mods”文件夹中,然后启动游戏即可。
现在你可以在物品上使用 CustomModelData NBT。
但是,如果你没有与所使用的自定义模型数据值关联的资源包,该 NBT 只会导致渲染“缺失纹理”。
纹理路径(采用资源位置格式)类似于原版护甲纹理路径,但有一些变化:
- 命名空间更改为
aacmd,即本模组的命名空间。
- 在护甲材质名称后附加 CustomModelData 值
例如,assets/aacmd/textures/models/armor/leather_1_layer_X.png
是 CustomModelData 值为 1、层数为 X 的皮革护甲物品的纹理。
如果你想忽略材质名称,请在物品上使用 IgnoreMaterial:1b NBT。
例如,assets/aacmd/textures/models/armor/1_layer_X.png 是 CustomModelData 值为 1、层数为 X 且忽略材质名称的护甲物品的纹理。
许可证
版权所有 (C) 2025 SNWCreations,根据 GNU AGPL v3 许可证授权。
AACMD
AACMD (Another Armor Custom Model Data) is a mod which adds CustomModelData support
for vanilla-like armor items.
This mod is inspired by ArmorCustomModelData
and made as a technical solution of my friend's creation.
What does it do?
Words above should be clear.
Technically, "vanilla-like armor items" means the armor items which are implemented on top of
vanilla "ArmorItem" class.
So armors which have custom renderers will NOT be supported by this mod because
I don't know how they retrieve armor textures, and will they use vanilla armor models
or their own geo models.
As far as I know, these armors are commonly registered through Fabric Render API
with the implementation of Fabric ArmorRenderer interface, or something like it on
other platforms.
Why make it?
I know modders could register their own armors through Mod APIs, so this mod is not for them.
This mod is for the developers who just want to add many custom armor textures in a more vanilla way
to their bigger project which could accept mods.
How to use?
Just install this mod to your "mods" folder, then start your game.
Now you can use CustomModelData NBT on items.
However, this NBT will just make the "missing texture" rendered if you don't have a resource pack associated with the custom model data value you uses.
The texture path (in resource location format) just like vanilla armor texture path,
but there are some changes:
- Namespace changed to
aacmd, the namespace of this mod.
- CustomModelData value appended after the armor material name
For example, assets/aacmd/textures/models/armor/leather_1_layer_X.png
is the texture for leather armor items with CustomModelData valued 1, layer X.
If you want to ignore the material name, use IgnoreMaterial:1b NBT on the item.
For example, assets/aacmd/textures/models/armor/1_layer_X.png is the texture
for armor items with CustomModelData valued 1, layer X and ignored the material name.
License
Copyright (C) 2025 SNWCreations, Licensed under GNU AGPL v3 License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧