[
    {
        "condition": "minecraft:inverted",
        "term": {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
                "equipment": {
                    "mainhand": {
                        "nbt": "{smithed:{not_tool:1b}}"
                    }
                }
            }
        }
    },
    {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
            "equipment": {
                "mainhand": {
                    "items": [
                        "minecraft:wooden_sword",
                        "minecraft:wooden_axe",
                        "minecraft:wooden_pickaxe",
                        "minecraft:wooden_shovel",
                        "minecraft:wooden_hoe",

                        "minecraft:stone_sword",
                        "minecraft:stone_axe",
                        "minecraft:stone_pickaxe",
                        "minecraft:stone_shovel",
                        "minecraft:stone_hoe",

                        "minecraft:golden_sword",
                        "minecraft:golden_axe",
                        "minecraft:golden_pickaxe",
                        "minecraft:golden_shovel",
                        "minecraft:golden_hoe",

                        "minecraft:iron_sword",
                        "minecraft:iron_axe",
                        "minecraft:iron_pickaxe",
                        "minecraft:iron_shovel",
                        "minecraft:iron_hoe",

                        "minecraft:diamond_sword",
                        "minecraft:diamond_axe",
                        "minecraft:diamond_pickaxe",
                        "minecraft:diamond_shovel",
                        "minecraft:diamond_hoe",

                        "minecraft:netherite_sword",
                        "minecraft:netherite_axe",
                        "minecraft:netherite_pickaxe",
                        "minecraft:netherite_shovel",
                        "minecraft:netherite_hoe",

                        "minecraft:flint_and_steel"
                    ]
                }
            }
        }
    }
]