{
	"format_version": "1.20.30",
	"minecraft:block": {
		"description": {
			"identifier": "farmersdelight:cutting_board",
			"menu_category": {
				"category": "items",
				"group": "itemGroup.name.farmersdelight_kitchen"
			},
			"states": {
				"block:rotation": [
					2,
					3,
					4,
					5
				]
			}
		},
		"components": {
			"minecraft:material_instances": {
				"*": {
					"render_method": "alpha_test",
					"texture": "cutting_board"
				}
			},
			"minecraft:geometry": "geometry.cutting_board",
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 0.5
			},
			"minecraft:on_player_placing": {
				"event": "block:rotation"
			},
			"minecraft:selection_box": {
				"origin": [
					-7,
					0,
					-7
				],
				"size": [
					14,
					1,
					14
				]
			},
			"minecraft:collision_box": {
				"origin": [
					-7,
					0,
					-7
				],
				"size": [
					14,
					1,
					14
				]
			},
			"minecraft:on_placed": {
				"event": "board"
			},
			"minecraft:light_dampening": 0
		},
		"permutations": [
			{
				"condition": "query.block_state('block:rotation') == 2",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							0,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('block:rotation') == 3",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							-180,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('block:rotation') == 4",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							90,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('block:rotation') == 5",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							-90,
							0
						]
					}
				}
			}
		],
		"events": {
			"block:rotation": {
				"set_block_state": {
					"block:rotation": "query.cardinal_facing_2d"
				}
			},
			"board": {
				"run_command": {
					"command": [
						"summon farmersdelight:cutting_board_entity ~ ~-0.50 ~"
					]
				}
			}
		}
	}
}