{
  "format_version": "1.21.80",
  "minecraft:block": {
    "description": {
      "identifier": "drz:asphalt_5_slab_drz",
      "menu_category": {"category": "construction"},
      "traits": {
        "minecraft:placement_direction": {
          "enabled_states": ["minecraft:cardinal_direction"]
        },
        "minecraft:placement_position": {
          "enabled_states": ["minecraft:vertical_half"]
        }
      },
      "states": { "drz:full_block": [false, true] }
    },
    "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('minecraft:vertical_half') == 'top'",
        "components": {
          "minecraft:liquid_detection": {
            "detection_rules": [
              {
                "can_contain_liquid": true
              }
            ]
          },
          "minecraft:collision_box": {
            "origin": [-8, 8, -8],
            "size"  : [16, 8, 16]
          },
          "minecraft:selection_box": {
            "origin": [-8, 8, -8],
            "size"  : [16, 8, 16]
          }
        }
      },
      {
        "condition": "q.block_state('drz:full_block')",
        "components": {
          "minecraft:collision_box": true,
          "minecraft:selection_box": true,
          "minecraft:liquid_detection": {
            "detection_rules": [
              {
                "can_contain_liquid": false
              }
            ]
          },
          "minecraft:light_dampening": 15
        }
      }
    ],
    "components": {
      "tag:drz:asphalt": {},
      "tag:decorize": {},
      "minecraft:geometry": {
        "identifier": "geometry.slab_1_drz",
        "culling": "drz:slab_1",
        "bone_visibility": {
          "main": "q.block_state('drz:full_block')",
          "top": "!q.block_state('drz:full_block') && q.block_state('minecraft:vertical_half') == 'top'",
          "bottom": "!q.block_state('drz:full_block') && q.block_state('minecraft:vertical_half') == 'bottom'"
        }
      },
      "minecraft:material_instances": { 
        "*": {
          "texture": "asphalt_5_drz"
        },
        "west": {
          "texture": "asphalt_drz"
        },
        "east": {
          "texture": "asphalt_drz"
        }
      },
      "minecraft:destruction_particles": {
        "texture": "asphalt_5_drz"
      },
      "minecraft:collision_box": {
        "origin": [-8, 0, -8],
        "size"  : [16, 8, 16]
      },
      "minecraft:selection_box": {
        "origin": [-8, 0, -8],
        "size"  : [16, 8, 16]
      },
      "minecraft:light_dampening": 0,
      "minecraft:map_color": "#545454",
      "minecraft:liquid_detection": {
        "detection_rules": [
          {
            "can_contain_liquid": true,
            "stops_liquid_flowing_from_direction": ["down"]
          }
        ]
      },
      "minecraft:custom_components": ["drz:slab"]
    }
  }
}