{
  "format_version": "1.21.80",
  "minecraft:block": {
    "description": {
      "identifier": "drz:window_white_drz",
      "menu_category": {"category": "construction"},
      "traits": {
        "minecraft:placement_direction": {
          "enabled_states": ["minecraft:cardinal_direction"]
        }
      },
      "states": {
        "drz:place": ["mid","front","back"]
      }
    },
    "permutations": [
      {
        "condition": "q.block_state('minecraft:cardinal_direction') == 'east' || q.block_state('minecraft:cardinal_direction') == 'west'",
        "components": {
          "minecraft:transformation": { "rotation": [0, 90, 0] }
        }
      },
      {
        "condition": "q.block_state('drz:place') == 'back'",
        "components": {
          "minecraft:collision_box": {
            "origin": [-8, 0, 6],
            "size": [16, 16, 2]
          },   
          "minecraft:selection_box": {
            "origin": [-8, 0, 0],
            "size": [16, 16, 8]
          }
        }
      },
      {
        "condition": "q.block_state('drz:place') == 'front'",
        "components": {
          "minecraft:collision_box": {
            "origin": [-8, 0, -8],
            "size": [16, 16, 2]
          },   
          "minecraft:selection_box": {
            "origin": [-8, 0, -8],
            "size": [16, 16, 8]
          }
        }
      }
    ],
    "components": {
      "tag:sound:dig.wood": {},
      "tag:drz:window": {},
      "tag:decorize": {},
      "minecraft:geometry": {
        "identifier": "geometry.window_drz",
        "culling": "drz:window",
        "bone_visibility": {
          "mid" : "q.block_state('drz:place') == 'mid'",
          "back" : "q.block_state('drz:place') == 'back'",
          "front" : "q.block_state('drz:place') == 'front'"
        }
      },
      "minecraft:material_instances": {
        "*": {
          "texture": "wood_white_drz",
          "render_method": "alpha_test_single_sided"
        },
        "1": {
          "texture": "window_drz",
          "render_method": "alpha_test_single_sided"
        }
      },
      "minecraft:destruction_particles": {
        "texture": "window_drz"
      },
      "minecraft:collision_box": {
        "origin": [-8, 0, -1],
        "size": [16, 16, 2]
      },   
      "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:cancel"
      ]
    }
  }
}