{
  "format_version": "1.16.100",
  "minecraft:block": {
    "description": {
      "identifier": "loled:kitchen_cabinet_light_blue_3",
      "properties": {
        "loled:active": [
          0,
          1,
          2
        ]
      }
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "kitchen_cabinet_light_blue",
          "render_method": "alpha_test"
        }
      },
	  "minecraft:creative_category": {
        "group": "itemGroup.name.stone",
        "category": "nature"
      },
      "minecraft:pick_collision": {
        "origin": [
          -8,
          0,
          -8
        ],
        "size": [
          16,
          16,
          16
        ]
      },
      "minecraft:loot": "loot_tables/kitchen_cabinet/kitchen_cabinet_light_blue.json",
      "minecraft:geometry": "geometry.kitchen_cabinet_corner",
      "minecraft:destroy_time": 2,
      "minecraft:block_light_absorption": 0,
      "minecraft:unwalkable": true,
      "minecraft:entity_collision": {
        "origin": [
          -8,
          0,
          -8
        ],
        "size": [
          16,
          16,
          16
        ]
      },
      "minecraft:friction": 0.6,
      "minecraft:map_color": "#00ff00",
      "minecraft:flammable": {
        "flame_odds": 0,
        "burn_odds": 0
      },
      "minecraft:rotation": [
        0,
        180,
        0
      ],
      "minecraft:on_placed": {
        "event": "loled:open"
      },
      "minecraft:on_interact": {
        "event": "loled:toggle"
      },
      "minecraft:on_player_placing": {
        "event": "loled:face"
      }
    },
    "permutations": [
      {
        "condition": "query.block_property('loled:active') == 1",
        "components": {
          "minecraft:geometry": "geometry.kitchen_cabinet_corner",
          "minecraft:block_light_absorption": 0,
          "minecraft:entity_collision": {
            "origin": [
              -6,
              0,
              -6
            ],
            "size": [
              14,
              16,
              14
            ]
          },
          "minecraft:pick_collision": {
            "origin": [
              -6,
              0,
              -6
            ],
            "size": [
              14,
              16,
              14
            ]
          },
          "minecraft:on_placed": {
            "event": "nothing"
          },
          "minecraft:on_interact": {
            "event": "nothing"
          },
          "minecraft:ticking": {
            "looping": true,
            "range": [
              5,
              5
            ],
            "on_tick": {
              "event": "loled:normal"
            }
          }
        }
      },
      {
        "condition": "query.block_property('loled:active') == 2",
        "components": {
          "minecraft:geometry": "geometry.kitchen_cabinet_corner",
          "minecraft:block_light_absorption": 0,
          "minecraft:entity_collision": {
            "origin": [
              -8,
              0,
              -8
            ],
            "size": [
              16,
              16,
              16
            ]
          },
          "minecraft:pick_collision": {
            "origin": [
              -8,
              0,
              -8
            ],
            "size": [
              16,
              16,
              16
            ]
          },
          "minecraft:on_placed": {
            "event": "nothing"
          },
          "minecraft:on_interact": {
            "event": "loled:toggle"
          }
        }
      }
    ],
    "events": {
      "loled:open": {
        "run_command": {
          "command": "summon furniture:abrir"
        }
      },
      "loled:normal": {
        "set_block_property": {
          "loled:active": 2
        },
        "run_command": {
          "command": "playsound block.barrel.close @p ~~~ 1 1"
        }
      },
      "loled:toggle": {
        "set_block_property": {
          "loled:active": 1
        },
        "run_command": {
          "command": "playsound block.barrel.open @p ~~~ 1 1"
        }
      }
    }
  }
}