跳到正文

Custom Model Data Viewer

作者:ModLabs

List all items with custom model data

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

CustomModelDataViewer is a lightweight mod that adds a dedicated creative tab for all items using the new 1.21.4+ CustomModelDataComponent. It automatically detects any items referencing a customModelData string (like in the example .json snippet) and organizes them in one convenient location. This makes it easier for resource pack creators and modders to quickly review, test, and manage custom item models without searching through standard tabs or multiple files.

Example Item:

assets/minecraft/items/brown_dye.json

{
    "model": {
      "type": "minecraft:select",
      "property": "minecraft:custom_model_data",
      "cases": [
        {
            "when": "old_hat",
            "model": {
              "type": "minecraft:model",
              "model": "skyrealm:item/hats/old_hat",
              "tints": [
                {
                  "type": "minecraft:custom_model_data",
                  "default": 15702017
                }
              ]
            }
          }
      ],
      "fallback": {
        "type": "minecraft:model",
        "model": "minecraft:item/brown_dye"
      }
    }
}

常见问题

Custom Model Data Viewer 支持哪些 Minecraft 版本?

Custom Model Data Viewer 支持 Minecraft Java 版 1.21.4–26.3,共 10 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Custom Model Data Viewer 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

ModLabs 的其他作品

查看全部 →