{
	"format_version": "1.16.100",
	"minecraft:block": {
		"description": {
			"identifier": "medieval:darkoak_wood_chair2",
			"properties": {
				"medieval:facing_direction": [
					0,
					1,
					2,
					3,
					4,
					5
				]
			}
		},
		"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
					]
				}
			}
		],
		"components": {
			"minecraft:geometry": "geometry.chairs_3",
			"minecraft:material_instances": {
				"*": {
					"texture": "darkoak_wood",
					"render_method": "opaque"
				}
			},
			"minecraft:on_player_placing": {
				"event": "set_facing_direction"
			},
			"minecraft:creative_category": {
				"category": "construction",
				"group": "itemGroup.name.darkoakChairs"
			},
			"minecraft:entity_collision": {
				"origin": [
					-7.0,
					0.0,
					-7.0
				],
				"size": [
					14,
					9,
					14
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-7.0,
					0.0,
					-7.0
				],
				"size": [
					14,
					9,
					14
				]
			},
			"minecraft:on_interact": {
				"event": "sit"
			},
			"minecraft:flammable": {
				"flame_odds": 5,
				"burn_odds": 5
			},
			"minecraft:block_light_absorption": 0.0,
			"minecraft:explosion_resistance": 1.8,
			"minecraft:map_color": "#522200",
			"minecraft:destroy_time": 1
		},
		"events": {
			"sit": {
				"sequence": [
					{
						"condition": "query.block_property('medieval:facing_direction') == 2",
						"run_command": {
							"command": [
								"kill @e[type=medieval:sit_bench,c=1,r=0.5]",
								"summon medieval:sit_bench ~ ~ ~",
								"execute @e[type=medieval:sit_bench,c=1] ~ ~ ~ tp @s ~ ~-0.1 ~-0.1 facing ~ ~ ~1",
								"execute @e[type=medieval:sit_bench,c=1,r=2] ~ ~ ~ ride @p start_riding @s teleport_rider"
							]
						}
					},
					{
						"condition": "query.block_property('medieval:facing_direction') == 3",
						"run_command": {
							"command": [
								"kill @e[type=medieval:sit_bench,c=1,r=0.5]",
								"summon medieval:sit_bench ~ ~ ~",
								"execute @e[type=medieval:sit_bench,c=1] ~ ~ ~ tp @s ~ ~-0.1 ~0.1 facing ~ ~ ~-1",
								"execute @e[type=medieval:sit_bench,c=1,r=2] ~ ~ ~ ride @p start_riding @s teleport_rider"
							]
						}
					},
					{
						"condition": "query.block_property('medieval:facing_direction') == 4",
						"run_command": {
							"command": [
								"kill @e[type=medieval:sit_bench,c=1,r=0.5]",
								"summon medieval:sit_bench ~ ~ ~",
								"execute @e[type=medieval:sit_bench,c=1] ~ ~ ~ tp @s ~-0.1 ~-0.1 ~ facing ~1 ~ ~",
								"execute @e[type=medieval:sit_bench,c=1,r=2] ~ ~ ~ ride @p start_riding @s teleport_rider"
							]
						}
					},
					{
						"condition": "query.block_property('medieval:facing_direction') == 5",
						"run_command": {
							"command": [
								"kill @e[type=medieval:sit_bench,c=1,r=0.5]",
								"summon medieval:sit_bench ~ ~ ~",
								"execute @e[type=medieval:sit_bench,c=1] ~ ~ ~ tp @s ~0.1 ~-0.1 ~ facing ~-1 ~ ~",
								"execute @e[type=medieval:sit_bench,c=1,r=2] ~ ~ ~ ride @p start_riding @s teleport_rider"
							]
						}
					}
				]
			},
			"set_facing_direction": {
				"set_block_property": {
					"medieval:facing_direction": "query.cardinal_facing_2d"
				}
			}
		}
	}
}