Custom Model Data Viewer
CustomModelDataViewer is a lightweight mod that creates a dedicated creative tab for all items utilizing the new CustomModelDataComponent feature available from version 1.21.4 onwards. The mod automatically detects any items referencing customModelData strings (as demonstrated in the example JSON code) and organizes them in one convenient location.
Why Use This Mod?
With CustomModelDataViewer, resource pack creators and modders gain a powerful tool for quickly reviewing, testing, and managing custom item models. No more searching through standard tabs or navigating multiple files — all custom models are gathered in one place.
Implementation Example
File: 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"
}
}
}
Working with custom models becomes simple and intuitive!