{
    "format_version": "1.16.0",
    "minecraft:block": {
        "description": {
            "identifier": "furnicraft:armario_cafe",
            "register_to_creative_menu": true,
			"properties": {
				"furnicraft:active": [
					false,
					true
				],
				"furnicraft:rotation": [
					2,
					3,
					4,
					5
				]
			}
		},
		"components": {
			"minecraft:destroy_time": 0.3,
			"minecraft:friction": 0.7,
			"minecraft:map_color": "#FFFFFF",
			"minecraft:explosion_resistance": 1,
			"minecraft:flammable": {
				"flame_odds": 1,
				"burn_odds": 1
			},
			"minecraft:block_light_absorption": 0,
			"minecraft:block_light_emission": 0,
			"minecraft:on_player_destroyed": {
				"event": "remove:block",
				"target": "self"
			},
			"minecraft:material_instances": {
				"*": {
					"texture": "armario_cafe",
					"render_method": "alpha_test"
				}
			},
			"minecraft:on_step_on": {
				"event": "step:on",
				"target": "self"
			},
			"minecraft:on_step_off": {
				"event": "step:off",
				"target": "self"
			},
			"minecraft:on_placed": {
				"event": "size:block",
				"target": "self"
			},
			"minecraft:random_ticking": {
				"on_tick": {
					"event": "random:tick",
					"target": "self"
				}
			},
			"minecraft:on_fall_on": {
				"event": "fall:on",
				"target": "self"
			},
			"minecraft:ticking": {
				"looping": true,
				"range": [
					10,
					10
				],
				"on_tick": {
					"event": "on_tick",
					"target": "self"
				}
			},
			"minecraft:on_interact": {
				"event": "furnicraft:closed"
			},
			"minecraft:geometry": "geometry.armario_off",
			"minecraft:on_player_placing": {
				"event": "furnicraft:rotation"
			},
			"minecraft:entity_collision": {
				"origin": [
					-8,
					0,
					-8
				],
				"size": [
					16,
					16,
					16
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-8,
					0,
					-8
				],
				"size": [
					16,
					16,
					16
				]
			},
			"minecraft:creative_category": {
				"category": "items",
				"group": "itemGroup.name.furnicraft_armarios"
			}
		},
		"events": {
			"remove:block": {},
			"size:block": {},
			"step:on": {},
			"step:off": {},
			"on_tick": {},
			"random:tick": {},
			"fall:on": {},
			"furnicraft:closed": {
				"set_block_property": {
					"furnicraft:active": true
				}
			},
			"furnicraft:open": {
				"set_block_property": {
					"furnicraft:active": false
				}
			},
			"furnicraft:rotation": {
				"set_block_property": {
					"furnicraft:rotation": "query.cardinal_facing_2d"
				}
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('furnicraft:rotation') == 2",
				"components": {
					"minecraft:rotation": [
						0,
						0,
						0
					]
				}
			},
			{
				"condition": "query.block_property('furnicraft:rotation') == 3",
				"components": {
					"minecraft:rotation": [
						0,
						-180,
						0
					]
				}
			},
			{
				"condition": "query.block_property('furnicraft:rotation') == 4",
				"components": {
					"minecraft:rotation": [
						0,
						90,
						0
					]
				}
			},
			{
				"condition": "query.block_property('furnicraft:rotation') == 5",
				"components": {
					"minecraft:rotation": [
						0,
						-90,
						0
					]
				}
			},
			{
				"condition": "query.block_property('furnicraft:active') == true",
				"components": {
					"minecraft:on_interact": {
						"event": "furnicraft:open"
					},
					"minecraft:geometry": "geometry.armario_off"
				}
			},
			{
				"condition": "query.block_property('furnicraft:active') == false",
				"components": {
					"minecraft:on_interact": {
						"event": "furnicraft:closed"
					},
					"minecraft:geometry": "geometry.armario_on"
				}
			}
		]
	}
}