Custom Item Models 图标

Custom Item Models

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.3+26.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/cim
资源信息

Minecraft 版本: 26.1 26.1.1 26.1.2

平台: fabric

标签: decoration game-mechanics utility

资源介绍

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.

img
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.

img
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"
}

img
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"
        }
    }
}

img

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.

img

License

This mod is available under the MIT license. Feel free to learn from it and incorporate it in your own projects.

📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
[TaCZ] Fatal Contract gunpack

价格:0 墨喵币
下载量:0

查看详情
Foils Marvel Stuff

价格:0 墨喵币
下载量:0

查看详情
Nexus (Tower Defense Battle Mode)

价格:0 墨喵币
下载量:0

查看详情
hush... - Horror Modpack

价格:0 墨喵币
下载量:0

查看详情