{
  "format_version": "1.21.80",
  "minecraft:block": {
    "description": {
      "identifier": "drz:whiteboard_drz",
      "menu_category": {"category": "items"},
      "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:liquid_detection": {
            "detection_rules": [
              {
                "can_contain_liquid": true,
                "on_liquid_touches": "no_reaction",
                "stops_liquid_flowing_from_direction": ["north"]
              }
            ]
          },
          "minecraft:transformation": { "rotation": [0, 180, 0] }
        }
      },
      {
        "condition": "q.block_state('minecraft:cardinal_direction') == 'east'",
        "components": {
          "minecraft:liquid_detection": {
            "detection_rules": [
              {
                "can_contain_liquid": true,
                "on_liquid_touches": "no_reaction",
                "stops_liquid_flowing_from_direction": ["east"]
              }
            ]
          },
          "minecraft:transformation": { "rotation": [0, 90, 0] }
        }
      },
      {
        "condition": "q.block_state('minecraft:cardinal_direction') == 'west'",
        "components": {
          "minecraft:liquid_detection": {
            "detection_rules": [
              {
                "can_contain_liquid": true,
                "on_liquid_touches": "no_reaction",
                "stops_liquid_flowing_from_direction": ["west"]
              }
            ]
          },
          "minecraft:transformation": { "rotation": [0, -90, 0] }
        }
      }
    ],
    "components": {
      "tag:drz:whiteboard": {},
      "tag:decorize": {},
      "minecraft:geometry": {
        "identifier": "geometry.whiteboard_drz",
        "culling": "drz:whiteboard",
        "bone_visibility": {
          "center" : true,
          "top": "!q.block_state('drz:top')",
          "top_right": "!q.block_state('drz:top') || ((q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:south')))",
          "top_left": "!q.block_state('drz:top') || ((q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:north')))",
          "bottom": "!q.block_state('drz:bottom')",
          "bottom_right": "!q.block_state('drz:bottom') || ((q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:south')))",
          "bottom_left": "!q.block_state('drz:bottom') || ((q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:north')))",
          "right": "(q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:south'))",
          "left": "(q.block_state('minecraft:cardinal_direction') == 'south' && !q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'north' && !q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'west' && !q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'east' && !q.block_state('drz:north'))"
        }
      },
      "minecraft:material_instances": {
        "*": {
          "texture": "wood_brown_drz"
        },
        "1": {
          "texture": "asphalt_drz"
        }
      },
      "minecraft:destruction_particles": {
        "texture": "wood_brown_drz"
      },
      "minecraft:collision_box": {
        "origin": [-8, 0, 5],
        "size": [16, 16, 3]
      },   
      "minecraft:selection_box": {
        "origin": [-8, 0, 0],
        "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,
            "on_liquid_touches": "no_reaction",
            "stops_liquid_flowing_from_direction": ["south"]
          }
        ]
      },
      "minecraft:custom_components": [
        "drz:vertical_full"
      ]
    }
  }
}