{
	"format_version": "1.20.80",
	"minecraft:block": {
		"description": {
			"identifier": "sgs_farm:melon_cantaloupe",
			"menu_category": {
				"category": "none",
				"group": "none",
				"is_hidden_in_commands": false
			},
			"states": {
				"sgs_farm:growth": [
					0,
					1,
					2,
					3,
					4,
					5,
					6,
					7
				],
				"sgs_farm:shifted":[
				   0,
				   1
				]
			}
		},
		"components": {
			"minecraft:collision_box": false,
			"minecraft:custom_components": [
				"sgs_farm:crop"
			],
			"minecraft:display_name":"Cantaloupe Melon Block\n§dCreative§r\n§o§2Crops & Farms§r",
			"minecraft:geometry": "geometry.sgs_farm_crop_g_crawl",
			"minecraft:light_dampening": 0,
			"minecraft:map_color": "#19612c",
			"minecraft:placement_filter": {
				"conditions": [
					{
						"allowed_faces": [
							"up"
						],
						"block_filter": [
							"farmland",
							{"tags":"query.any_tag('sgs_farm_planter')"}
						]
					}
				]
			}
		},
		"permutations": [
			{
				"condition": "q.block_state('sgs_farm:growth') < 7",
				"components": {
					"minecraft:loot": "loot_tables/sgs/farm/blocks/melon_cantaloupe_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_melon_cantaloupe_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_melon_cantaloupe_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_melon_cantaloupe_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_melon_cantaloupe_2"
						}
					},
					"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_melon_cantaloupe_3"
						}
					},
					"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_melon_cantaloupe_3"
						}
					},
					"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_melon_cantaloupe_3"
						}
					},
					"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/melon_cantaloupe_grown.json",
					"minecraft:material_instances": {
						"*": {
							"face_dimming": true,
							"ambient_occlusion": false,
							"render_method": "alpha_test",
							"texture": "sgs_farm_melon_cantaloupe_4"
						}
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							8,
							16
						]
					}
				}
			},
			{
                "condition": "q.block_state('sgs_farm:shifted') == 1",
                "components": {
					"minecraft:geometry": "geometry.sgs_farm_crop_g_crawl_s"
                }
            }
		]
	}
}