{
  "format_version": "1.16.0",
  "minecraft:block": {
    "description": {
      "identifier": "loled:d_ar_cond",
      "properties": {
        "loled:face": [
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "loled:active": [
          false,
          true
        ]
      }
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "ar_cond",
          "render_method": "opaque"
        }
      },
      "minecraft:pick_collision": {
        "origin": [
          -8,
          7,
          -8
        ],
        "size": [
          16,
          9,
          8
        ]
      },
      "minecraft:creative_category": {
        "group": "itemGroup.name.decorations",
        "category": "construction"
      },
      "minecraft:loot": "loot_tables/city/d_ar_cond.json",
      "minecraft:geometry": "geometry.ar_cond",
      "minecraft:destroy_time": 1,
      "minecraft:block_light_absorption": 2,
      "minecraft:entity_collision": {
        "origin": [
          -8,
          7,
          -8
        ],
        "size": [
          16,
          9,
          8
        ]
      },
      "minecraft:ticking": {
        "looping": true,
        "range": [
          0,
          0
        ],
        "on_tick": {
          "event": "air_particle"
        }
      },
      "minecraft:on_player_placing": {
        "event": "loled:place"
      },
      "minecraft:friction": 0.6,
      "minecraft:map_color": "#00ff00",
      "minecraft:flammable": {
        "flame_odds": 0,
        "burn_odds": 0
      },
      "minecraft:on_interact": {
        "event": "loled:toggle"
      }
    },
    "events": {
      "loled:place": {
        "set_block_property": {
          "loled:face": "(query.cardinal_player_facing)"
        }
      },
      "air_particle": {
        "run_command": {
          "command": [
            "particle loled:ar_condicionado ~-0.09~0.1~"
          ]
        }
      },
      "loled:toggle": {
        "set_block_property": {
          "loled:active": "query.block_property('loled:active') ? false : true"
        }
      }
    },
    "permutations": [
      {
        "condition": "query.block_property('loled:face') == 2",
        "components": {
          "minecraft:block_light_emission": 0
        }
      },
      {
        "condition": "query.block_property('loled:face') == 3",
        "components": {
          "minecraft:rotation": [
            0,
            180,
            0
          ]
        }
      },
      {
        "condition": "query.block_property('loled:face') == 4",
        "components": {
          "minecraft:rotation": [
            0,
            90,
            0
          ]
        }
      },
      {
        "condition": "query.block_property('loled:face') == 5",
        "components": {
          "minecraft:rotation": [
            0,
            270,
            0
          ]
        }
      },
      {
        "condition": "!query.block_property('loled:active')",
        "components": {
          "minecraft:geometry": "geometry.ar_cond",
          "minecraft:ticking": {
            "looping": true,
            "range": [
              0,
              0
            ],
            "on_tick": {
              "event": "nothing"
            }
          },
          "minecraft:block_light_absorption": 0,
          "minecraft:material_instances": {
            "*": {
              "texture": "ar_cond",
              "render_method": "opaque"
            }
          }
        }
      }
    ]
  }
}