{
  "format_version": "1.21.80",
  "minecraft:block": {
    "description": {
      "identifier": "drz:window_1_drz",
      "menu_category": {"category": "construction"},
      "traits": {
        "minecraft:placement_direction": {
          "enabled_states": ["minecraft:cardinal_direction"]
        }
      },
      "states": {
        "drz:top": [false, true],
        "drz:bottom" : [false, true],
        "drz:north": [false, true],
        "drz:east" : [false, true],
        "drz:south": [false, true],
        "drz:west" : [false, true]
      }
    },
    "permutations": [
      {
        "condition": "q.block_state('minecraft:cardinal_direction') == 'north'",
        "components": {
          "minecraft:transformation": { "rotation": [0, 180, 0] }
        }
      },
      {
        "condition": "q.block_state('minecraft:cardinal_direction') == 'east'",
        "components": {
          "minecraft:transformation": { "rotation": [0, 90, 0] }
        }
      },
      {
        "condition": "q.block_state('minecraft:cardinal_direction') == 'west'",
        "components": {
          "minecraft:transformation": { "rotation": [0, -90, 0] }
        }
      },
      {
        "condition": "(q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:west') && q.block_state('drz:north') && !q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:west') && q.block_state('drz:north') && !q.block_state('drz:south') && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:west') && !q.block_state('drz:south'))",
        "components": {
          "minecraft:transformation": { "rotation": [0, 180, 0] },
           "minecraft:collision_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          },   
          "minecraft:selection_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          },
         "minecraft:geometry": {
            "identifier": "geometry.window_1_drz",
            "culling": "drz:window_1",
            "bone_visibility": {
              "main" : false,
              "top": false,
              "top_right": false,
              "top_left": false,
              "bottom": false,
              "bottom_right": false,
              "bottom_left": false,
              "right": false,
              "left": false,
              "corner_top" : "!q.block_state('drz:top')",
              "corner_bottom" : "!q.block_state('drz:bottom')"
            }
          }
        }
      },
      {
        "condition": "(q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:east') && q.block_state('drz:south') && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:east') && q.block_state('drz:south') && !q.block_state('drz:north') && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:east') && !q.block_state('drz:north'))",
        "components": {
          "minecraft:transformation": { "rotation": [0, 0, 0] },
          "minecraft:collision_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          },   
          "minecraft:selection_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          },
          "minecraft:geometry": {
            "identifier": "geometry.window_1_drz",
            "culling": "drz:window_1",
            "bone_visibility": {
              "main" : false,
              "top": false,
              "top_right": false,
              "top_left": false,
              "bottom": false,
              "bottom_right": false,
              "bottom_left": false,
              "right": false,
              "left": false,
              "corner_top" : "!q.block_state('drz:top')",
              "corner_bottom" : "!q.block_state('drz:bottom')"
            }
          }
        }
      },
      {
        "condition": "(q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:north') && q.block_state('drz:east') && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:north') && q.block_state('drz:east') && !q.block_state('drz:west') && !q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:north') && !q.block_state('drz:west'))",
        "components": {
          "minecraft:transformation": { "rotation": [0, 90, 0] },
          "minecraft:collision_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          },   
          "minecraft:selection_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          },
          "minecraft:geometry": {
            "identifier": "geometry.window_1_drz",
            "culling": "drz:window_1",
            "bone_visibility": {
              "main" : false,
              "top": false,
              "top_right": false,
              "top_left": false,
              "bottom": false,
              "bottom_right": false,
              "bottom_left": false,
              "right": false,
              "left": false,
              "corner_top" : "!q.block_state('drz:top')",
              "corner_bottom" : "!q.block_state('drz:bottom')"
            }
          }
        }
      },
      {
        "condition": "(q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:south') && q.block_state('drz:west') && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:south') && q.block_state('drz:west') && !q.block_state('drz:east') && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:south') && !q.block_state('drz:east'))",
        "components": {
          "minecraft:transformation": { "rotation": [0, -90, 0] },
          "minecraft:collision_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          },   
          "minecraft:selection_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          },
          "minecraft:geometry": {
            "identifier": "geometry.window_1_drz",
            "culling": "drz:window_1",
            "bone_visibility": {
              "main" : false,
              "top": false,
              "top_right": false,
              "top_left": false,
              "bottom": false,
              "bottom_right": false,
              "bottom_left": false,
              "right": false,
              "left": false,
              "corner_top" : "!q.block_state('drz:top')",
              "corner_bottom" : "!q.block_state('drz:bottom')"
            }
          }
        }
      },
      {
        "condition": "(q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:north') && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:south') && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:west') && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:east') && !q.block_state('drz:south'))",
        "components": {
          "minecraft:collision_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          },   
          "minecraft:selection_box": {
            "origin": [-8, 0, -2],
            "size": [10, 16, 10]
          }
        }
      }
    ],
    "components": {
      "tag:cfront": {},
      "tag:drz:window_1": {},
      "tag:decorize": {},
      "minecraft:geometry": {
        "identifier": "geometry.window_1_drz",
        "culling": "drz:window_1",
        "bone_visibility": {
          "main" : "(q.block_state('minecraft:cardinal_direction') == 'north' && (!q.block_state('drz:north') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && (!q.block_state('drz:south') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && (!q.block_state('drz:west') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && (!q.block_state('drz:east') || q.block_state('drz:south')))",
          "top": "!q.block_state('drz:top') && ((q.block_state('minecraft:cardinal_direction') == 'north' && (!q.block_state('drz:north') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && (!q.block_state('drz:south') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && (!q.block_state('drz:west') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && (!q.block_state('drz:east') || q.block_state('drz:south'))))",
          "top_right": "(!q.block_state('drz:top') && ((q.block_state('minecraft:cardinal_direction') == 'north' && (!q.block_state('drz:north') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && (!q.block_state('drz:south') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && (!q.block_state('drz:west') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && (!q.block_state('drz:east') || q.block_state('drz:south'))))) || ((q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:east') && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:west') && !q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:north') && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:south') && !q.block_state('drz:east')))",
          "top_left": "(!q.block_state('drz:top') && ((q.block_state('minecraft:cardinal_direction') == 'north' && (!q.block_state('drz:north') || q.block_state('drz:west') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && (!q.block_state('drz:south') || q.block_state('drz:east') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && (!q.block_state('drz:west') || q.block_state('drz:south') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && (!q.block_state('drz:east') || q.block_state('drz:north') || q.block_state('drz:south'))))) || ((q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:west') && (!q.block_state('drz:north') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:east') && (!q.block_state('drz:south') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:south') && (!q.block_state('drz:west') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:north') && (!q.block_state('drz:east') || q.block_state('drz:south'))))",
          "bottom": "!q.block_state('drz:bottom') && ((q.block_state('minecraft:cardinal_direction') == 'north' && (!q.block_state('drz:north') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && (!q.block_state('drz:south') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && (!q.block_state('drz:west') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && (!q.block_state('drz:east') || q.block_state('drz:south'))))",
          "bottom_right": "(!q.block_state('drz:bottom') && ((q.block_state('minecraft:cardinal_direction') == 'north' && (!q.block_state('drz:north') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && (!q.block_state('drz:south') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && (!q.block_state('drz:west') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && (!q.block_state('drz:east') || q.block_state('drz:south'))))) || ((q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:east') && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:west') && !q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:north') && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:south') && !q.block_state('drz:east')))",
          "bottom_left": "(!q.block_state('drz:bottom') && ((q.block_state('minecraft:cardinal_direction') == 'north' && (!q.block_state('drz:north') || q.block_state('drz:west') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && (!q.block_state('drz:south') || q.block_state('drz:east') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && (!q.block_state('drz:west') || q.block_state('drz:south') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && (!q.block_state('drz:east') || q.block_state('drz:north') || q.block_state('drz:south'))))) || ((q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:west') && (!q.block_state('drz:north') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:east') && (!q.block_state('drz:south') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:south') && (!q.block_state('drz:west') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:north') && (!q.block_state('drz:east') || q.block_state('drz:south'))))",
          "right": "(q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:east') && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:west') && !q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:north') && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:south') && !q.block_state('drz:east'))",
          "left": "(q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:west') && (!q.block_state('drz:north') || q.block_state('drz:east'))) || (q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:east') && (!q.block_state('drz:south') || q.block_state('drz:west'))) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:south') && (!q.block_state('drz:west') || q.block_state('drz:north'))) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:north') && (!q.block_state('drz:east') || q.block_state('drz:south')))",
          "corner_top" : "!q.block_state('drz:top') && ((q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:north') && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:south') && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:west') && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:east') && !q.block_state('drz:south')))",
          "corner_bottom" : "!q.block_state('drz:bottom') && ((q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:north') && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:south') && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:west') && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:east') && !q.block_state('drz:south')))"
        }
      },
      "minecraft:material_instances": {
        "*": {
          "texture": "metal_gray_drz",
          "render_method": "alpha_test"
        },
        "1": {
          "texture": "window_1_drz",
          "render_method": "alpha_test"
        },
        "2": {
          "texture": "metal_drz",
          "render_method": "alpha_test"
        }
      },
      "minecraft:destruction_particles": {
        "texture": "window_1_drz"
      },
      "minecraft:collision_box": {
        "origin": [-8, 0, -2],
        "size": [16, 16, 4]
      },   
      "minecraft:selection_box": {
        "origin": [-8, 0, -4],
        "size": [16, 16, 8]
      },   
      "minecraft:destructible_by_mining":{
        "seconds_to_destroy": 1
      },
      "minecraft:destructible_by_explosion": false,
      "minecraft:light_dampening": 0,
      "minecraft:liquid_detection": {
        "detection_rules": [
          {
            "can_contain_liquid": true
          }
        ]
      },
      "minecraft:custom_components": [
        "drz:vertical_full"
      ]
    }
  }
}