#I need help with a custom leather boots texture.

36 messages · Page 1 of 1 (latest)

tawny solar
#

I'm trying to create a 2D custom boots texture using CustomModelData in a resource pack, but the model is not appearing in game.

Minecraft version: 1.21

My resource pack structure is:

assets/minecraft/models/item/leather_boots.json
assets/minecraft/models/custom/armor/toffy_link_boots.json
assets/minecraft/textures/item/toffy_link_boots_icon.png

leather_boots.json:

{
"parent": "item/generated",
"textures": {
"layer0": "item/leather_boots",
"layer1": "item/leather_boots_overlay"
},
"overrides": [
{
"predicate": {
"custom_model_data": 1543
},
"model": "custom/armor/toffy_link_boots"
}
]
}

toffy_link_boots.json:

{
"parent": "item/generated",
"textures": {
"layer0": "item/toffy_link_boots_icon"
}
}

Command I tried:

/give @s minecraft:leather_boots{CustomModelData:1543}

But the texture doesn't change.

Did I place the files in the wrong location or miss something?

twin dawnBOT
#
Conflicting tags detected

It looks like you have applied tags to this post that conflict. Please only apply the tags that are relevant to your post. We can only help you if we know the context of your question, and applying incorrect tags makes this confusing.

You can refer to #1029373817119838218 for a description of what each tag is for!

Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

little skiff
little skiff
tawny solar
little skiff
#

oh, yeah, then that's no longer how it works

#

override/predicates have been replaced in 1.21.2 and moved to their own .json files (aka item definition files) in the minecraft/items folder

tawny solar
little skiff
#

yeah, cause the system no longer works the way you did it

#

do you specifically need to use the CustomModelData item component or would you be fine with using something else? (which is easier imo)

little skiff
#

k, in that case do the following:

  1. Delete your leather_boots.json item model. Keep your custom toffy model and texture where they are.

  2. Create a file called toffy_link_boots.json in assets/minecraft/items
    -# this is completely separate from your item models in models/item !
    in that new file write this:

{
  "model": {
    "type": "minecraft:model",
    "model": "minecraft:custom/armor/toffy_link_boots"
  }
}```

3.  Ingame, run `/give @s leather_boots[item_model="toffy_link_boots"]`
tawny solar
#

ok now thats what i have assets\minecraft\models\custom\armor\toffy_link_boots.json inside i have {
"format_version": "1.21.11",
"parent": "item/generated",
"textures": {
"layer0": "item/toffy_link_boots_icon"
},
"display": {}
} and i have on this path assets/minecraft/items {
"model": {
"type": "minecraft:model",
"model": "minecraft:custom/armor/toffy_link_boots"
}
} like u said and i have on this path this assets\minecraft\textures\item toffy_link_boots_icon.png that is currect?

#

How do I put it on the player?

#

It means its visible but how do I put it on the players leg?

#

@little skiff

little skiff
tawny solar
little skiff
#

icon texture and armor texture are 2 separate things though

#

In general you'd have the following for armor textures:
assets/minecraft/equipment/toffy_link.json

{
  "layers": {
    "humanoid": [
      {
        "texture": "minecraft:toffy_link"
      }
    ],
    "humanoid_leggings": [
      {
        "texture": "minecraft:toffy_link"
      }
    ]
  }
}```
And then you put your armor textures in `assets/minecraft/textures/entity/equipment/humanoid/` and `/humanoid_leggings` and call them both toffy_link.png

And ingame you then give yourself the item like 
`/give @s leather_boots[item_model="toffy_link_boots",equippable={slot:"feet",asset_id:"toffy_link",equip_on_interact:true,swappable:true,damage_on_hurt:true}]`
-# (you can ommit the parts you don't need, like the damage_on_hurt part if your item shouldn't have durablity loss)
If you _only_ need the boots then you can sip the humanoid_leggings part in the file and the second texture in that folder as well
tawny solar
#

@little skiff sry for the delay

#

i do what u said look

#

It looks longer, like pants and shoes together and the color appears completely pink. I don't understand why

#

and for assets/minecraft/equipment/toffy_link.json i put this {
"layers": {
"humanoid": [
{
"texture": "minecraft:toffy_link"
}
]
}
}

little skiff
tawny solar
#

@little skiff yea look

tawny solar
# tawny solar

I had previously made a 3D shoe so I just took its texture and put it here assets/minecraft/textures/entity/equipment/humanoid/

#

its oky right?

little skiff
little skiff
tawny solar
little skiff
#

not textures/item/entity
textures/entity

tawny solar
#

yea its works now