Why my piglin steels gold

Solution 1:

In this "piglin_converted" object:

"piglin_converted": {
    "remove": {},
    "add": {
        "component_groups": [
            "to_piglin"
        ]
    }
}

Replace "add" with "replace" to create:

"piglin_converted": {
    "remove": {},
    "replace": {
        "component_groups": [
            "to_piglin"
        ]
    }
}