#(1.21.11) How do i put custom shield models

29 messages · Page 1 of 1 (latest)

indigo flax
#

I want to include several custom shield models in a texture pack that can be obtained via commands (item_model), but it's not working and I don't understand why (Im testing with the diamond shield).

Here is the code from the diamond_shield.json so you can easily copy and paste it.

`{
"model": {
"type": "minecraft:condition",
"property": "minecraft:using_item",

"on_false": {
  "type": "minecraft:model",
  "model": "shieldman:item/diamond_shield"
},

"on_true": {
  "type": "minecraft:model",
  "model": "shieldman:item/diamond_shield"
}

}
}`

rose depotBOT
#
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.

limpid fjord
indigo flax
#

I don't understand

limpid fjord
#

save it and make sure the problem isn't that you didn't save your file

indigo flax
#

It should look like this?

limpid fjord
#

k, are there any errors in the output log?

#

!faq output-log

rose depotBOT
# limpid fjord !faq output-log
FAQ
Java: Output Log

The output log will show you errors related to resource packs in Minecraft: Java Edition. Here is how you can enable it.
(PS: Optifine likes to hide vanilla errors/warnings for some weird reason, so always load the game up without it if you don't need it for your pack to work!)
If you don't understand the errors/warnings feel free to show and ask about them (in a help channel).

indigo flax
#

This is what says

limpid fjord
# indigo flax

you have a bunch of faces in your model with no assigned texture

#

Minecraft misinterprets that as you trying to load textures from several atlases (while only one atlas is allowed).

#

In Blockbench, use the Optimize plugin to remove all unnecessary faces.
Alternatively select everything (Ctrl+A), rightclick the texture and click "apply to untextured faces"

indigo flax
#

Now says this

limpid fjord
rose depotBOT
# limpid fjord !faq invalid-names
FAQ
Java: Invalid Names

Files/Folders nor reference to them are allowed to contain capital letters nor spaces.
Valid symobls are: a-z (lowercase only!) 0-9 / . _ and -

When changing a file's/folder's name, keep in mind that you also need to update all references (texture path in models, model paths in custom_model_data predicates etc.)
Disclaimer: Optifine used to allow those characters, but for a vanilla client the model will either be the error cube or it might even crash their game (depending on their specs).

limpid fjord
#

this is not a valid texture path

indigo flax
#

wich would be the correct order?

limpid fjord
# indigo flax wich would be the correct order?

if that texture is in your pack like this: assets/shieldman/textures/item/diamond_shield.png
Then your texture path in the model would need to look like this: "shieldman:item/diamond_shield"

indigo flax
#

Still not working 😔

limpid fjord
indigo flax
#

why does the game says there are no textures?

limpid fjord
#

Does it show an error cube?
Or does it show the model, but with an error texture?

indigo flax
#

The cube error

limpid fjord