How to use Custom Model Data in Minecraft Java 1.21.4 [Tutorial]

preview_player
Показать описание
A tutorial on how to use custom model data in the Minecraft 1.21.4 update.

Custom model data is kinda pointless in 1.21.4 to be honest, you can just set the item model directly on the item using components, so you should probably do that instead ¯\_(ツ)_/¯

Chapters:
0:00 Introduction
0:22 Creating a new pack
2:09 Creating item definitions
5:56 Validating JSON
6:48 Creating a model file to add a new texture
9:48 Testing in game
11:34 Creating a model file to add a new model
15:33 Outro

--------------------------------

Join the Discord:

Support me on Ko-Fi:

--------------------------------

All Downloads Here:

--------------------------------

Find me on socials:
Рекомендации по теме
Комментарии
Автор

I hate how it changes so much but I'm happy the updates allow for more data pack creation ideas thank you this helped :)

scottjackson
Автор

Creators: Thanks Mojang!
Mojang: You're welcome.
Creators: And how do I use them to customize?
Mojang: Oh, you want to know that too? Sorry, I have to go.

TheRedstone
Автор

Wow a super clean breakdown. Item models, textures and functionality are all so exciting nowadays. Appreciate your contributions to Minecraft resource pack + data pack + map + utility making as always bro.

misterk_-
Автор

If anyone want to do custom_model_data with numbers instead of strings, you need to use this format:

{
"model": {
"type": "range_dispatch",
"property": "custom_model_data",
"fallback": {
"type": "model",
"model": "item/mace"
},
"entries": [
{"threshold": 1, "model": {"type": "model", "model": "item/bat1"}},
{"threshold": 2, "model": {"type": "model", "model": "item/bat2"}}
]
}
}

NasheedPog
Автор

Custom model data is kinda pointless in 1.21.4 to be honest, you can just set the item model directly on the item using components, so you should probably do that instead ¯\_(ツ)_/¯

EwanHowell
Автор

Hello ! could you provide a simple example on how to use numbers instead of text for Custom Model Data please ?

rayanbzdi
Автор

For those who would like multiple custom models variants for one item.json when named differently, in this case coloured apple variants.

{
"model": {
"type": "select",
"property": "custom_model_data",
"fallback": {
"type": "model",
"model": "item/apple"
},
"cases": [
{
"when": "green_apple",
"model": {
"type": "model",
"model": "item/green_apple"
}
},
{
"when": "pink_apple",
"model": {
"type": "model",
"model": "item/pink_apple"
}
},
{
"when": "yellow_apple",
"model": {
"type": "model",
"model": "item/yellow_apple"
}
}
]
}
}

miniblockmaker
Автор

I just updated my world to 1.21.5. I tested my 3d pack in my 1.21.4 test and it went perfectly fine! I loaded into my 1.21.5 world to get to work on some cool new decorations in my item frames and the 3d model works just fine, but for some reason my original item is having the null texture. I have used raw chicken and I can't figure out why it is busted but the 3d one is perfectly fine. I am very new to these resourcepack creations and would love some help!

VillagerBudz
Автор

how to do custom model data to blockstates/block?

horadashistoriasasmr
Автор

Is it possible to use custom model data for elytra? Or do entities not work with cmd?

TheKampfmaschine
Автор

When I first saw it I thought Minecraft had added CIT
If they make a "custom_name" property, that would be basically CIT wouldn't it?

joaocomtil_
Автор

Hello, not sure what I have done wrong but it has just replaced the normal items

Natdave
Автор

If I want to create several models for a single item, I add when?

lachainedebenny
Автор

Edit: it crashes whenever i search for the stone pickaxe in the creative inv
Why does my game keep crashing? Code:
{
"model": {
"type": "select",
"property": "custom_model_data",
"fallback": {
"type": "model",
"model": "item/stone_pickaxe"
},
"cases": [
{
"when": "coal",
"model": {
"type": "model",
"model": "item/coal"
}
}
]
}
}
(1.21.5 Version of Minecraft)

Rhodizites
Автор

i did custom model data for a command block and works good with the custom model but the default command block is showing the purple and black missing texture icon

gevabenayoun
Автор

Heyy thanks a lot but one question, is this possible to do with items which have more than one texture? For example, the crossbow

hadryan
Автор

Can you please make tutorial for custom model data numeric values?

Solstatecz
Автор

Love the video. But why cant I "/item replace entity @s armor.legs with How can I use custom models for whole armor set?

jafdell
Автор

Can you do this on custom roleplay datapack?

Marvnz
Автор

my item turned into a very large purple and black box (broken texture) and idk why

KingTacos