{
  "format_version": "1.21.60",
  "minecraft:block": {
    "description": {
      "identifier": "md3:fan_ceiling_md3",
      "menu_category": {"category": "items", "group": "minecraft:itemGroup.name.fan"},
      "traits": {
        "minecraft:placement_direction": {
          "enabled_states": ["minecraft:cardinal_direction"]
        }
      },
      "states": {
        "md:on": [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('md:on')",
        "components": {
          "minecraft:material_instances": {
            "*": {"texture": "fan_ceiling_white_md3", "render_method": "alpha_test_single_sided_to_opaque"},
            "blade": {"texture": "fan_ceiling_blade_on_white_md3", "render_method": "alpha_test_single_sided_to_opaque"},
            "bottom": {"texture": "fan_ceiling_bottom_white_md3", "render_method": "alpha_test_single_sided_to_opaque"}
          }
        }
      }
    ],
    "components": {
      "tag:fan_ceiling_md3": {},
      "minecraft:geometry": {
        "identifier": "geometry.fan_ceiling_md3",
        "culling": "md3:fan_ceiling",
        "bone_visibility": {
          "main": true,
          "on": "q.block_state('md:on')"
        }
      },
      "minecraft:material_instances": {
        "*": {"texture": "fan_ceiling_white_md3", "render_method": "alpha_test_single_sided_to_opaque"},
        "blade": {"texture": "fan_ceiling_blade_white_md3", "render_method": "alpha_test_single_sided_to_opaque"}
      },
      "minecraft:collision_box": {
        "origin": [-5.5,  0, -4],
        "size"  : [11  , 14,  8]
      },
      "minecraft:selection_box": {
        "origin": [-5.5,  0, -4],
        "size"  : [11  , 14,  8]
      },
      "minecraft:light_dampening": 0,
      "minecraft:destructible_by_mining": {"seconds_to_destroy": 1},
      "minecraft:destructible_by_explosion": false,
      "minecraft:custom_components": ["md:interactive_0"]
    }
  }
}