{
  "format_version": "1.21.80",
  "minecraft:block": {
    "description": {
      "identifier": "drz:wood_black_stairs_drz",
      "menu_category": {"category": "construction"},
      "traits": {
        "minecraft:placement_direction": {
          "enabled_states": ["minecraft:cardinal_direction"]
        },
        "minecraft:placement_position": {
          "enabled_states": ["minecraft:vertical_half"]
        }
      },
      "states": {
        "drz:fix": [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,
                "stops_liquid_flowing_from_direction": ["down","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,
                "stops_liquid_flowing_from_direction": ["down","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,
                "stops_liquid_flowing_from_direction": ["down","west"]
              }
            ]
          },
          "minecraft:transformation": { "rotation": [0, -90, 0] }
        }
      },
      {
        "condition": "(q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:east'))",
        "components": {
          "minecraft:geometry": {
            "identifier": "geometry.stairs_drz",
            "culling": "drz:stairs",
            "bone_visibility": {
              "main" : true,
              "1" : true,
              "2": false,
              "3": false,
              "4": false
            }
          }
        }
      },
      {
        "condition": "(q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:west'))",
        "components": {
          "minecraft:geometry": {
            "identifier": "geometry.stairs_drz",
            "culling": "drz:stairs",
            "bone_visibility": {
              "main" : true,
              "1" : true,
              "2": true,
              "3": "!q.block_state('drz:fix')",
              "4": "q.block_state('drz:fix')"
            }
          }
        }
      },
      {
        "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:geometry": {
            "identifier": "geometry.stairs_drz",
            "culling": "drz:stairs",
            "bone_visibility": {
              "main" : true,
              "1" : false,
              "2": true,
              "3": false,
              "4": false
            }
          }
        }
      },
      {
        "condition": "q.block_state('minecraft:vertical_half') == 'top'",
        "components": {
          "minecraft:geometry": {
            "identifier": "geometry.stairs_flip_drz",
            "culling": "drz:stairs_flip",
            "bone_visibility": {
              "main" : true,
              "1" : true,
              "2": true,
              "3": false,
              "4": false
            }
          },
          "minecraft:collision_box": {
            "origin": [-8,  8, -8],
            "size"  : [16, 8, 16]
          },
          "minecraft:liquid_detection": {
            "detection_rules": [
              {
                "can_contain_liquid": true
              }
            ]
          }
        }
      },
      {
        "condition": "q.block_state('minecraft:vertical_half') == 'top' && ((q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:east')))",
        "components": {
          "minecraft:geometry": {
            "identifier": "geometry.stairs_flip_drz",
            "culling": "drz:stairs_flip",
            "bone_visibility": {
              "main" : true,
              "1" : true,
              "2": false,
              "3": false,
              "4": false
            }
          }
        }
      },
      {
        "condition": "q.block_state('minecraft:vertical_half') == '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')))",
        "components": {
          "minecraft:geometry": {
            "identifier": "geometry.stairs_flip_drz",
            "culling": "drz:stairs_flip",
            "bone_visibility": {
              "main" : true,
              "1" : false,
              "2": true,
              "3": false,
              "4": false
            }
          }
        }
      },
      {
        "condition": "q.block_state('minecraft:vertical_half') == 'top' && ((q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:east')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:west')))",
        "components": {
          "minecraft:geometry": {
            "identifier": "geometry.stairs_flip_drz",
            "culling": "drz:stairs_flip",
            "bone_visibility": {
              "main" : true,
              "1" : true,
              "2": true,
              "3": "!q.block_state('drz:fix')",
              "4": "q.block_state('drz:fix')"
            }
          }
        }
      }
    ],
    "components": {
      "tag:stairs": {},
      "tag:drz:wood_black_stairs": {},
      "tag:decorize": {},
      "minecraft:geometry": {
        "identifier": "geometry.stairs_drz",
        "culling": "drz:stairs",
        "bone_visibility": {
          "main" : true,
          "1" : true,
          "2": true,
          "3": false,
          "4": false
        }
      },
      "minecraft:material_instances": {
        "*": {
          "texture": "wood_black_drz"
        }
      },
      "minecraft:destruction_particles": {
        "texture": "wood_black_drz"
      },
      "minecraft:collision_box": {
        "origin": [-8,  0, -8],
        "size"  : [16, 8, 16]
      },
      "minecraft:selection_box": true,
      "minecraft:destructible_by_mining":{
        "seconds_to_destroy": 1
      },
      "minecraft:destructible_by_explosion": false,
      "minecraft:map_color": "#1d1d1d",
      "minecraft:light_dampening": 0,
      "minecraft:liquid_detection": {
        "detection_rules": [
          {
            "can_contain_liquid": true,
            "stops_liquid_flowing_from_direction": ["down","south"]
          }
        ]
      },
      "minecraft:custom_components": [
        "drz:stairs"
      ]
    }
  }
}