I have been making a Zelda map recently, and I am at the point of custom shield models. I am adding in two custom shields (using the custom_model_data tag), but neither of the blocking models are being displayed, even though the normal models are being shown just fine. I don't know if it is a matter of code, use, or syntax, but any help would be greatly apperciated.
Your main shield file only lists four different variants - itself (shield.json), its own blocking version (shield_blocking.json), variant 1 (shield1_normal.json), and variant 2 (shield2_normal.json).
You don't have any predicates listed for either shield1_blocking.json or shield2_blocking.json, which is why they don't appear. You'll need to set those up so that the predicate requires both the custom model data and the blocking state.
Only the main model file can have predicate overrides since that's where Minecraft is looking to see what it should display based on the item's current state. Adding them to the sub-models won't do anything since Minecraft isn't checking for a sub-sub-model.
I hope that helps you.
1
That makes sense, but am I able to test for two different predicates at the same time?
--Edit--
Ok, I figured out the multiple-predicate detection. Thanks a lot!