#create custom armor model
47 messages · Page 1 of 1 (latest)
(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.*
Short answer, you cant
Essentially yeah
!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.
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
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"
are you able to run a data get command
what does it mean, idk
it's a vanilla command in 1.13 or above.
to display the data of something in your chat
what should I do with this command ?
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
is SEHER_AVCISI one of the item? or is it item type?
it's item name
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
ok then it make thing easier
since the plugin you use store custom item nbt, in optifine cit you can just check that instead of doing the hard way
line 5 in this screenshot, i am sure you set unique mmoitems_item_id in your config right?
this line doesn't metter
then in optifine the nbt line can be just this below
nbt.MMOITEMS_ITEM_ID=SEHER_AVCISI
just color code enough for me
it's very hard to match using the color code but if you want to do that, give me a sec
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.
which is why i suggest this, match your mmoitem custom nbt instead of it's name.
Ill try