{
    "format_version": "1.21.60",
    "minecraft:block": {
        "description": {
            "identifier": "farmersdelight:rich_soil_potato",
            "states": {
                "farmersdelight:growth": [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7
                ]
            }
        },
        "permutations": [
            {
                "condition": "query.block_state('farmersdelight:growth') == 0",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "potatoes_stage0",
                            "ambient_occlusion": false,
                            "face_dimming": false,
                            "render_method": "alpha_test"
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [
                            -8,
                            0,
                            -8
                        ],
                        "size": [
                            16,
                            1.3,
                            16
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('farmersdelight:growth') == 1",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "potatoes_stage0",
                            "ambient_occlusion": false,
                            "face_dimming": false,
                            "render_method": "alpha_test"
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [
                            -8,
                            0,
                            -8
                        ],
                        "size": [
                            16,
                            2.8,
                            16
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('farmersdelight:growth') == 2",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "potatoes_stage1",
                            "ambient_occlusion": false,
                            "face_dimming": false,
                            "render_method": "alpha_test"
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [
                            -8,
                            0,
                            -8
                        ],
                        "size": [
                            16,
                            4.1,
                            16
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('farmersdelight:growth') == 3",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "potatoes_stage1",
                            "ambient_occlusion": false,
                            "face_dimming": false,
                            "render_method": "alpha_test"
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [
                            -8,
                            0,
                            -8
                        ],
                        "size": [
                            16,
                            5.5,
                            16
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('farmersdelight:growth') == 4",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "potatoes_stage2",
                            "ambient_occlusion": false,
                            "face_dimming": false,
                            "render_method": "alpha_test"
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [
                            -8,
                            0,
                            -8
                        ],
                        "size": [
                            16,
                            6.9,
                            16
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('farmersdelight:growth') == 5",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "potatoes_stage2",
                            "ambient_occlusion": false,
                            "face_dimming": false,
                            "render_method": "alpha_test"
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [
                            -8,
                            0,
                            -8
                        ],
                        "size": [
                            16,
                            8.2,
                            16
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('farmersdelight:growth') == 6",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "potatoes_stage3",
                            "ambient_occlusion": false,
                            "face_dimming": false,
                            "render_method": "alpha_test"
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [
                            -8,
                            0,
                            -8
                        ],
                        "size": [
                            16,
                            9.6,
                            16
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('farmersdelight:growth') == 7",
                "components": {
                    "minecraft:loot": "loot_tables/farmersdelight/crops/potato_riped.json",
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "potatoes_stage3",
                            "ambient_occlusion": false,
                            "face_dimming": false,
                            "render_method": "alpha_test"
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [
                            -8,
                            0,
                            -8
                        ],
                        "size": [
                            16,
                            11,
                            16
                        ]
                    }
                }
            }
        ],
        "components": {
            "minecraft:custom_components": [
                "farmersdelight:potato"
            ],
            "minecraft:liquid_detection": {
                "detection_rules": [
                    {
                        "on_liquid_touches": "popped"
                    }
                ]
            },
            "minecraft:loot": "loot_tables/farmersdelight/crops/potato.json",
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 0.0
            },
            "minecraft:light_dampening": 0,
            "minecraft:geometry": "geometry.bush_crop",
            "minecraft:destructible_by_explosion": {
                "explosion_resistance": 0.0
            },
            "minecraft:collision_box": false,
            
            "minecraft:placement_filter": {
                "conditions": [
                    {
                        "block_filter": [
                            "farmersdelight:rich_soil_farmland"
                        ],
                        "allowed_faces": [
                            "up"
                        ]
                    }
                ]
            },
            
            "tag:crop": {},
            "tag:max_growth:7": {},
            "tag:growth_property:farmersdelight:growth": {}
        }
    }
}