{
  "format_version": "1.21.80",
  "minecraft:block": {
    "description": {
      "identifier": "drz:lamppost_drz",
      "menu_category": {"category": "construction"},
      "traits": {
        "minecraft:placement_direction": {
          "enabled_states": ["minecraft:cardinal_direction"]
        }
      },
      "states": {
        "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') == '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.lamppost_drz",
            "bone_visibility": {
              "main" : true,
              "in" : false,
              "mid": 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.lamppost_drz",
            "bone_visibility": {
              "main" : false,
              "in" : true,
              "mid": true
            }
          },
          "minecraft:light_emission": 0
        }
      },
      {
        "condition": "(q.block_state('minecraft:cardinal_direction') == 'north' && q.block_state('drz:south') && q.block_state('drz:north')) || (q.block_state('minecraft:cardinal_direction') == 'south' && q.block_state('drz:north')&& q.block_state('drz:south')) || (q.block_state('minecraft:cardinal_direction') == 'west' && q.block_state('drz:east') && q.block_state('drz:west')) || (q.block_state('minecraft:cardinal_direction') == 'east' && q.block_state('drz:west') && q.block_state('drz:east'))",
        "components": {
          "minecraft:geometry": {
            "identifier": "geometry.lamppost_drz",
            "bone_visibility": {
              "main" : false,
              "in" : false,
              "mid": true
            }
          },
          "minecraft:light_emission": 0
        }
      }
    ],
    "components": {
      "tag:drz:lamppost": {},
      "tag:decorize": {},
      "minecraft:geometry": {
        "identifier": "geometry.lamppost_drz",
        "bone_visibility": {
          "main" : true,
          "in" : true,
          "mid": false
        }
      },
      "minecraft:material_instances": {
        "*": {
          "texture": "lamppost_drz"
        },
        "glow": {
          "texture": "lamppost_drz",
          "ambient_occlusion": false,
          "face_dimming": false
        }
      },
      "minecraft:destruction_particles": {
        "texture": "lamppost_drz"
      },
      "minecraft:collision_box": {
        "origin": [-4, 0, -8],
        "size": [8, 9, 16]
      },   
      "minecraft:selection_box": {
        "origin": [-4, 0, -8],
        "size": [8, 9, 16]
      },   
      "minecraft:destructible_by_mining":{
        "seconds_to_destroy": 1
      },
      "minecraft:destructible_by_explosion": false,
      "minecraft:light_dampening": 0,
      "minecraft:light_emission": 15,
      "minecraft:custom_components": [
        "drz:horizontal_full"
      ]
    }
  }
}