diff --git a/minecraft_model_reader/api/resource_pack/java/resource_pack_manager.py b/minecraft_model_reader/api/resource_pack/java/resource_pack_manager.py index 755fb59..95982b3 100644 --- a/minecraft_model_reader/api/resource_pack/java/resource_pack_manager.py +++ b/minecraft_model_reader/api/resource_pack/java/resource_pack_manager.py @@ -276,6 +276,16 @@ def _get_model(self, block: Block) -> BlockMesh: for prop_match in case["when"]["OR"] ): continue + elif "AND" in case["when"]: + if not all( + all( + block.properties.get(prop, None) + in self.parse_state_val(val) + for prop, val in prop_match.items() + ) + for prop_match in case["when"]["AND"] + ): + continue elif not all( block.properties.get(prop, None) in self.parse_state_val(val)