#create custom armor model

47 messages · Page 1 of 1 (latest)

pseudo flume
#

how can i create custom model data for armors ? any example ?

blissful hazel
#

I'm not sure that's a thing

#

!faq custom-model-data

rapid shuttleBOT
# blissful hazel !faq custom-model-data

(Result for "custom_model_data")
Disclaimer: This only works for items (not placed blocks!) and only if you are in Java Edition 1.14 or later!

Example to give a stick 4 new models:
You'd place this file in YourResourcePack/assets/minecraft/models/item and call it stick.json.

stick.json

{
    "parent": "item/generated",
    "textures": {
        "layer0": "item/stick"
    },
    "overrides": [
        { "predicate": {"custom_model_data": 1}, "model": "item/custom_stick"},
        { "predicate": {"custom_model_data": 2}, "model": "custom/branch"},
        { "predicate": {"custom_model_data": 3}, "model": "block/stone"},
        { "predicate": {"custom_model_data": 4}, "model": "item/more_sticks"}
    ]
}```
Ingame you can give yourself one of the custom sticks by doing `/give <player> stick{CustomModelData:X}` (X being replaced by the number you want)

*PS: The model path is **always** relative to the models folder of your pack.*
*So `"item/custom_stick"` will load the model in `YourPack/assets/minecraft/models/item` called custom_stick.json.*
*For `"custom/branch"` it would be the model in `YourPack/assets/minecraft/models/custom` called branch.json and so on.*
blissful hazel
#

Yeah see

#

"only works for items"

patent rose
#

Short answer, you cant

blissful hazel
#

Essentially yeah

rapid shuttleBOT
# flat bay !faq java-armor

The armor model when worn on players/entities cannot be remodeled in vanilla Java edition, only retextured. Pumpkins and other items set on a player's head can be remodeled for custom hats, but won't display if set on feet/legs/torso.
(Any item can be put on the players head via the /item replace command (aka /replaceitem before 1.18), or ofc via mod or plugin methods).
Furthermore, with this pack you can give a large set of specific leather armor colors a unique texture without interfering with the colors available in a normal survival situation: https://github.com/Ancientkingg/fancyPants

With Optifine it is possible to add texture variants on any armor pieces depending on the name, damage and other nbt, but remodelling is also not possible with it.

pseudo flume
#

didn't work

patent rose
#

go ahead and decide the name of the item, let me know, i can then tell you what nbt to put in the cit properties

pseudo flume
#

Athena Set with #831917
Okyanus Set with #df797c
Derin Mercan Set with #d338f2
Seher Avcısı Set with #DDBF39

#

if it possible; maybe bold "&l"

patent rose
#

are you able to run a data get command

pseudo flume
#

what does it mean, idk

patent rose
#

it's a vanilla command in 1.13 or above.
to display the data of something in your chat

pseudo flume
#

what should I do with this command ?

patent rose
#

once you decided what name to use, get such named item and hold it in your main hand, then run this command in chat and screenshot show us
/data get entity @s SelectedItem

pseudo flume
patent rose
#

is SEHER_AVCISI one of the item? or is it item type?

pseudo flume
#

it's item name

patent rose
#

ok i see both use that nvm, let me keep looking

#

hmmm the four lines you showed above, is it the same item or 4 different ones

pseudo flume
#

same item

patent rose
#

ok then it make thing easier

pseudo flume
#

it shouldn't be this hard to write with color code :/

patent rose
#

since the plugin you use store custom item nbt, in optifine cit you can just check that instead of doing the hard way

pseudo flume
patent rose
#

line 5 in this screenshot, i am sure you set unique mmoitems_item_id in your config right?

pseudo flume
#

this line doesn't metter

patent rose
#

then in optifine the nbt line can be just this below
nbt.MMOITEMS_ITEM_ID=SEHER_AVCISI

pseudo flume
#

just color code enough for me

patent rose
#

it's very hard to match using the color code but if you want to do that, give me a sec

pseudo flume
#

why we can't use like this

#

bullshit

patent rose
#

because when optifine see your item name in nbt form, it then look like this

#

so either you write all that after Name to your nbt.display.Name

#

or write portion of it to your nbt.display.Name

#

But non of those two method are easy to manage by all mean.

patent rose
pseudo flume
#

Ill try