When I try to swap the model of a shield based on what type of banner pattern it has, it simply does nothing.
To reproduce:
Open minecraft, apply the resource pack I have attached here, make a white banner with a red border, put it on a shield.
Expected result:
The shield should be white with a red border
actual result:
the shield is just white
Here is the item file that is telling the game to render a composite of three models, red border, white base and shield. (all the other base colors included should be irrelevant, so while they are present in the pack, I removed them from this)
{
"model": {
"type": "minecraft:condition",
"on_false": {
"type": "minecraft:select",
"property": "minecraft:component",
"component": "minecraft:base_color",
"cases": [
{
"when": [
"white"
],
"model": {
"type": "minecraft:select",
"property": "minecraft:component",
"component": "minecraft:banner_patterns",
"cases": [
{
"when": [
{
"color": "red",
"pattern": "minecraft:border"
}
],
"model": {
"type": "minecraft:composite",
"models": [
{
"type": "minecraft:model",
"model": "minecraft:item/shields/shield"
},
{
"type": "minecraft:model",
"model": "minecraft:item/shields/white/base"
},
{
"type": "minecraft:model",
"model": "minecraft:item/shields/red/border"
}
]
}
}
],
"fallback": {
"type": "minecraft:composite",
"models": [
{
"type": "minecraft:model",
"model": "minecraft:item/shields/shield"
},
{
"type": "minecraft:model",
"model": "minecraft:item/shields/white/base"
}
]
}
}
}
],
"fallback": {
"type": "minecraft:model",
"model": "minecraft:item/shields/shield"
}
},
"on_true": {
"type": "minecraft:model",
"model": "minecraft:item/shields/shield_blocking"
},
"property": "minecraft:using_item"
}
}
Hi!
Thank you for your report!
However, this issue is Invalid.
Your game, launcher or server is modified.
If you can reproduce the issue in a vanilla environment, please recreate the issue.
Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.
A world which had previously been opened with a modified client might be corrupted. Please try reproducing the issue in a newly generated world.
Any plugin issues need to be addressed to the creator of the plugin or resource pack.
If you have problems on large servers like Hypixel, please contact them first as they run modified server software.
Quick Links:ย
๐โฏIssue Guidelinesโฏโ ๐ฌโฏMojang Supportโฏโ ๐งโฏSuggestionsโฏโ ๐โฏMinecraft Wiki