{
	"format_version": "1.20.80",
	"minecraft:block": {
		"description": {
			"identifier": "sgs_farm:tomato_cherry",
			"menu_category": {
				"category": "none",
				"group": "none",
				"is_hidden_in_commands": false
			},
			"traits": {
				"minecraft:placement_direction": {
					"enabled_states": ["minecraft:cardinal_direction"]
				}
			},
			"states": {
				"sgs_farm:growth": [
					0,
					1,
					2,
					3,
					4,
					5,
					6,
					7
				]
			}
		},
		"components": {
			"minecraft:collision_box": false,
			"minecraft:custom_components": [
				"sgs_farm:crop",
				"sgs_farm:a_frame_crop"
			],
			"minecraft:display_name":"Cherry Tomato Block\n§dCreative§r\n§o§2Crops & Farms§r",
			"minecraft:geometry": "geometry.sgs_farm_crop_a_frame",
			"minecraft:light_dampening": 0,
			"minecraft:map_color": "#19612c",
			"minecraft:placement_filter": {
				"conditions": [
					{
						"allowed_faces": [
							"up"
						],
						"block_filter": [
							"farmland"
						]
					}
				]
			}
		},
		"permutations": [
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'north' ",
				"components": {
					"minecraft:transformation": {
						"rotation": [0, 180, 0]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'south' ",
				"components": {
					"minecraft:transformation": {
						"rotation": [0, 0, 0]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'east' ",
				"components": {
					"minecraft:transformation": {
						"rotation": [0, 90, 0]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'west' ",
				"components": {
					"minecraft:transformation": {
						"rotation": [0, 270, 0]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:growth') < 7",
				"components": {
					"minecraft:loot": "loot_tables/sgs/farm/blocks/tomato_cherry_seed.json"
				}
			},
			{
				"condition": "q.block_state('sgs_farm:growth') == 0",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"face_dimming": true,
							"ambient_occlusion": false,
							"render_method": "alpha_test",
							"texture": "sgs_farm_tomato_cherry_1"
						}
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							2,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:growth') == 1",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"face_dimming": true,
							"ambient_occlusion": false,
							"render_method": "alpha_test",
							"texture": "sgs_farm_tomato_cherry_2"
						}
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:growth') == 2",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"face_dimming": true,
							"ambient_occlusion": false,
							"render_method": "alpha_test",
							"texture": "sgs_farm_tomato_cherry_2"
						}
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:growth') == 3",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"face_dimming": true,
							"ambient_occlusion": false,
							"render_method": "alpha_test",
							"texture": "sgs_farm_tomato_cherry_3"
						}
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:growth') == 4",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"face_dimming": true,
							"ambient_occlusion": false,
							"render_method": "alpha_test",
							"texture": "sgs_farm_tomato_cherry_4"
						}
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							6,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:growth') == 5",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"face_dimming": true,
							"ambient_occlusion": false,
							"render_method": "alpha_test",
							"texture": "sgs_farm_tomato_cherry_5"
						}
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							6,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:growth') == 6",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"face_dimming": true,
							"ambient_occlusion": false,
							"render_method": "alpha_test",
							"texture": "sgs_farm_tomato_cherry_6"
						}
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							6,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:growth') == 7",
				"components": {
					"minecraft:loot": "loot_tables/sgs/farm/blocks/tomato_cherry_grown.json",
					"minecraft:material_instances": {
						"*": {
							"face_dimming": true,
							"ambient_occlusion": false,
							"render_method": "alpha_test",
							"texture": "sgs_farm_tomato_cherry_7"
						}
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							8,
							16
						]
					}
				}
			}
		]
	}
}