{
    "format_version": "1.20.20",
    "minecraft:block": {
        "description": {
            "identifier": "vatonage:hopper_planter",
            "states": {
                "vatonage:planter_content": {
                    "values": [
                        "empty",
                        "dirt",
                        "grass",
                        "sand",
                        "podzol",
                        "mycelium",
                        "crimson_nylium",
                        "warped_nylium",
                        "farmland",
                        "soul_sand",
                        "enhanced_farmland",
                        "enriched_farmland",
                        "fertile_farmland",
                        "magical_farmland",
                        "mythical_farmland",
                        "end_stone"
                    ]
                },
				"vatonage:planter_upgrade":{
					"values":[0,1,2,3,4],
                    "default": "0"
				}
            },
            "menu_category": {
              "category": "items"
            }
        },
        "components": {
            "tag:minecraft:is_pickaxe_item_destructible": {},
"minecraft:collision_box": {
                "origin": [-8, 0, -8],
                "size": [16, 4, 16]
            },
            "minecraft:selection_box": {
                "origin": [-8, 0, -8],
                "size": [16, 4, 16]
            },
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 1
            },
            "minecraft:destructible_by_explosion": {
                "explosion_resistance": 30
            },
            "minecraft:geometry": {
    			"identifier": "geometry.planter",
    			"bone_visibility": {
    			    "basic": "q.block_state('vatonage:planter_upgrade') == 0",
    			    "iron": "q.block_state('vatonage:planter_upgrade') == 1",
    			    "gold": "q.block_state('vatonage:planter_upgrade') == 2",
    			    "diamond": "q.block_state('vatonage:planter_upgrade') == 3",
    			    "netherite": "q.block_state('vatonage:planter_upgrade') == 4"
    			}
			},
            "minecraft:material_instances": {
                "*": {
                    "texture": "planter",
                    "render_method": "alpha_test"
                }
            },
            "minecraft:map_color": "#ffffff",
            "minecraft:display_name": "%vatonage_survival_utilities.hopper_planter.name\n§e§oHammers and Sieves§r§r",
            "minecraft:custom_components": [
                "vatonage:hopper_planter_interacted"
            ]
        },
        "permutations": [
            {
                "condition": "q.block_state('vatonage:planter_content') == 'empty'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'dirt'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_dirt",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'grass'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_grass",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'sand'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_sand",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'podzol'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_podzol",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'mycelium'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_mycelium",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'crimson_nylium'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_crimson_nylium",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'warped_nylium'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_warped_nylium",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'farmland'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_farmland",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
			{
                "condition": "q.block_state('vatonage:planter_content') == 'soul_sand'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_soul_sand",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'enhanced_farmland'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_enhanced_farmland",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'enriched_farmland'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_enriched_farmland",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'fertile_farmland'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_fertile_farmland",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'magical_farmland'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_magical_farmland",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'mythical_farmland'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_mythical_farmland",
                            "render_method": "alpha_test"
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('vatonage:planter_content') == 'end_stone'",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "hopper_planter_end_stone",
                            "render_method": "alpha_test"
                        }
                    }
                }
            }
        ]
    }
}