Hi ,help me. I'm trying to migrate this data package to version 1.21.1. But something is not working

Function

recipe take @s totem_custom:eonico advancement revoke @s only totem_custom:eonico clear @s knowledge_book give @s minecraft:totem_of_undying[minecraft:custom_model_data=4,minecraft:lore=['[{"text":"Asegura un 100% de","italic":false,"color":"green"}]','[{"text":"probabilidad para","italic":false,"color":"green"}]','[{"text":"revivir.","italic":false,"color":"green"}]'],minecraft:attribute_modifiers={modifiers:[{amount:4,name:"generic.max_health",operation:"add_value",slot:"offhand",type:"generic.max_health",uuid:[I;401,401,401,401]}]},minecraft:custom_name='[{"text":" -| Totem Eónico |-","italic":false,"color":"dark_green"}]'] 1 Recipe

{ "type":"minecraft:smithing", "base": { "item": "minecraft:totem_of_undying" }, "addition": { "item": "minecraft:gold_ingot" }, "result": { "id": "knowledge_book" } } Advancement

{ "criteria": { "requirement": { "trigger": "minecraft:recipe_unlocked", "conditions": { "recipe": "totem_custom:eonico" } } }, "rewards": { "function": "totem_custom:eonico" } }

Continue to help post