{
	"format_version": "1.16.100",
	"minecraft:block": {
		"description": {
			"identifier": "medieval:acacia_drawer2",
			"properties": {
				"medieval:facing_direction": [
					0,
					1,
					2,
					3,
					4,
					5
				],
				"medieval:status": [
					1,
					2,
					3
				]
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('medieval:facing_direction') == 2",
				"components": {
					"minecraft:rotation": [
						0,
						0,
						0
					]
				}
			},
			{
				"condition": "query.block_property('medieval:facing_direction') == 3",
				"components": {
					"minecraft:rotation": [
						0,
						180,
						0
					]
				}
			},
			{
				"condition": "query.block_property('medieval:facing_direction') == 4",
				"components": {
					"minecraft:rotation": [
						0,
						90,
						0
					]
				}
			},
			{
				"condition": "query.block_property('medieval:facing_direction') == 5",
				"components": {
					"minecraft:rotation": [
						0,
						-90,
						0
					]
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 1",
				"components": {
					"minecraft:geometry": "geometry.desktop_2_close",
					"minecraft:on_interact": {
						"event": "open1"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 2",
				"components": {
					"minecraft:geometry": "geometry.desktop_2_open1",
					"minecraft:on_interact": {
						"event": "open2"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 3",
				"components": {
					"minecraft:geometry": "geometry.desktop_2_open2",
					"minecraft:on_interact": {
						"event": "close"
					}
				}
			}
		],
		"components": {
			"minecraft:geometry": "geometry.desktop_2_close",
			"minecraft:material_instances": {
				"wood": {
					"texture": "stripped_acacia",
					"render_method": "opaque",
					"ambient_occlusion": true,
					"face_dimming": true
				},
				"line": {
					"texture": "light_gray_concrete",
					"render_method": "opaque",
					"ambient_occlusion": true,
					"face_dimming": true
				},
				"book": {
					"texture": "book_brown",
					"render_method": "opaque",
					"ambient_occlusion": true,
					"face_dimming": true
				},
				"planks": {
					"texture": "acacia_planks",
					"render_method": "opaque",
					"ambient_occlusion": true,
					"face_dimming": true
				}
			},
			"minecraft:on_player_placing": {
				"event": "set_facing_direction"
			},
			"minecraft:creative_category": {
				"category": "items",
				"group": "itemGroup.name.acacia"
			},
			"minecraft:on_interact": {
				"event": "open1"
			},
			"minecraft:entity_collision": {
				"origin": [
					-8.0,
					0.0,
					-8.0
				],
				"size": [
					16,
					16,
					16
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-8.0,
					0.0,
					-8.0
				],
				"size": [
					16,
					16,
					16
				]
			},
			"minecraft:flammable": {
				"flame_odds": 5,
				"burn_odds": 5
			},
			"minecraft:block_light_absorption": 0.0,
			"minecraft:explosion_resistance": 1.8,
			"minecraft:map_color": "#f7781e",
			"minecraft:destroy_time": 1
		},
		"events": {
			"set_facing_direction": {
				"set_block_property": {
					"medieval:facing_direction": "query.cardinal_facing_2d"
				}
			},
			"close": {
				"run_command": {
					"command": "playsound block.barrel.close @p ~ ~ ~"
				},
				"set_block_property": {
					"medieval:status": 1
				}
			},
			"open1": {
				"run_command": {
					"command": "playsound block.barrel.open @p ~ ~ ~"
				},
				"set_block_property": {
					"medieval:status": 2
				}
			},
			"open2": {
				"run_command": {
					"command": "playsound block.barrel.open @p ~ ~ ~"
				},
				"set_block_property": {
					"medieval:status": 3
				}
			}
		}
	}
}