{
    "format_version": "1.21.20",
    "minecraft:block": {
        "description": {
            "identifier": "vatonage_mythical:coal_crop",
            "menu_category": {
                "category": "none"
            },
            "states": {
                "vatonage_mythical:growth": {
                    "values": { "min": 0, "max": 10 }
                }
            }
        },
        "components": {
            "tag:minecraft:is_hoe_item_destructible": {},
"minecraft:flammable": true,
            "minecraft:collision_box": false,
            "minecraft:geometry": "geometry.vatonage_mythical.custom_crop",
            "minecraft:display_name": "%vatonage_mythical.coal_crop.name\n§5§oMythical §2Seeds§r",
            "minecraft:light_dampening": 0,
            "minecraft:placement_filter": {
                "conditions": [
                    {
                        "allowed_faces": ["up"],
                        "block_filter": ["vatonage_mythical:fertile_farmland",
										"vatonage_mythical:enhanced_farmland",
										"vatonage_mythical:enriched_farmland",
										"vatonage_mythical:magical_farmland",
										"vatonage_mythical:mythical_farmland"]
                    }
                ]
            }
        },
        "permutations": [
            {
                "condition": "q.block_state('vatonage_mythical:growth') < 10",
                "components": {
                    "minecraft:loot": "loot_tables/vatonage/mythical/young/coal_crop_young_loot.json",
                    "minecraft:custom_components": ["vatonage_mythical:custom_crop_growth"]
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 0",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_1",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
					"minecraft:selection_box": {
						"origin": [-8, 0, -8],
						"size": [16, 10, 16]
					}
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 1",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_1",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
					"minecraft:selection_box": {
						"origin": [-8, 0, -8],
						"size": [16, 10, 16]
					}
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 2",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_1",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
					"minecraft:selection_box": {
						"origin": [-8, 0, -8],
						"size": [16, 10, 16]
					}
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 3",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_1",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [-8, 0, -8],
                        "size": [16, 13, 16]
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 4",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_3",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
					"minecraft:selection_box": {
						"origin": [-8, 0, -8],
						"size": [16, 13, 16]
					}
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 5",
                "components": {
                    "minecraft:selection_box": {
                        "origin": [-8, 0, -8],
                        "size": [16, 16, 16]
                    },
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_3",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 6",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_3",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
					"minecraft:selection_box": {
						"origin": [-8, 0, -8],
						"size": [16, 16, 16]
					}
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 7",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_5",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [-8, 0, -8],
                        "size": [16, 16, 16]
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 8",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_5",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [-8, 0, -8],
                        "size": [16, 16, 16]
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 9",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "crop_stage_5",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [-8, 0, -8],
                        "size": [16, 16, 16]
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage_mythical:growth') == 10",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "coal_crop",
                            "render_method": "alpha_test",
                            "ambient_occlusion": false,
                            "face_dimming": false
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [-8, 0, -8],
                        "size": [16, 16, 16]
                    },
                    "minecraft:loot": "loot_tables/vatonage/mythical/crops/coal_crop_loot.json"
                }
            }
        ]
    }
}
 
