Custom Item Models
Custom Item Models Mod powered by Custom Model Data Component
截图
介绍
Custom Item Models
Setup
This modification is only needed on the server side – clients without this mod will be able to join and use all provided functionality. It also works in singleplayer if installed on client.
Usage
To see compatible ResourcePack examples, navigate into tutorial directory.
Rename Name Tag on the Anvil into the string that you would usually put inside minecraft:custom_model_data={strings:[]} array.

Diamond before applying Name Tag with the title ruby:
{
count: 1,
Slot: 0b,
id: "minecraft:diamond"
}
Then, apply this Name Tag onto the item via Smithing Table.

Diamond after applying Name Tag with the title ruby:
{
count: 1,
Slot: 0b,
id: "minecraft:diamond",
components: {
"minecraft:custom_model_data": {
strings: ["ruby"]
}
}
}
This mod also changes minecraft:equippable component for such items as armor pieces and elytras.
for example, Diamond Helmet before applying Name Tag with the title crown:
{
count: 1,
Slot: 0b,
id: "minecraft:diamond_helmet"
}

and after applying Name Tag with the title crown:
{
count: 1,
Slot: 0b,
id: "minecraft:diamond_helmet",
components: {
"minecraft:custom_model_data": {
strings: ["crown"]
},
"minecraft:equippable": {
equip_sound: "minecraft:item.armor.equip_diamond",
slot: "head",
asset_id: "cim:crown"
}
}
}

ATTENTION: Be aware that asset_id will always be under cim namespace, due to how vanilla code operates. You can see examples in the tutorial directory.
You don’t have to use cim namespace for item models, only for armor rendering.

License
This mod is available under the MIT license. Feel free to learn from it and incorporate it in your own projects.
常见问题
Custom Item Models 支持哪些 Minecraft 版本?
Custom Item Models 支持 Minecraft Java 版 1.21.4–26.3,共 13 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Custom Item Models 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
DimasKama 的其他作品
查看全部 →
OrthoCamera
Configurable orthographic view mode
Voice Messages
Voice messages in minecraft chat
SchematicPreview
3D schematic previews & other utilities for litematica
VisualKeys
Utility mod that adds screen keyboard with all keybindings
评论
登录后评论和评分