Right click 1.21.3

Hi, I wnated to ask help for my datapack of right click detection, because I click right click and don't go, this are the function of my datapack:

Give bestia give @p carrot_on_a_stick[custom_name='["",{"text":"Respi","italic":false,"color":"gray"},{"text":"razione","italic":false,"color":"#333333"},{"text":" del","italic":false,"color":"gray"},{"text":"la bes","italic":false,"color":"#333333"},{"text":"tia","italic":false,"color":"gray"}]',rarity=uncommon,enchantments={levels:{bane_of_arthropods:5,sharpness:5,smite:5,thorns:5},show_in_tooltip:false},attribute_modifiers={modifiers:[{type:attack_damage,amount:8,slot:mainhand,operation:add_value,id:1734691674241},{type:attack_speed,amount:-2,slot:mainhand,operation:add_value,id:1734691674241}],show_in_tooltip:false},unbreakable={show_in_tooltip:false},food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,animation:"none"},max_stack_size=1,custom_model_data=18,custom_data={"bestia":1}]

Tick nothing

Load say load

Use bestia

tag @s add bestia

effect give @e[distance=..10,tag=!bestia] instant_damage 1 1
effect give @e[distance=..10,tag=!bestia] slowness 4 2

execute at @e[distance=..10,tag=!bestia] run particle minecraft:angry_villager ~ ~5 ~ 3 5 3 0 50
execute at @e[distance=..10,tag=!bestia] run particle minecraft:campfire_cosy_smoke ~ ~5 ~ 3 5 3 0 50```

tag @s remove bestia

advancament
```{
    "criteria": {
        "requirement": {
            "trigger": "minecraft:using_item",
            "conditions": {
                "item": {
                    "items": "minecraft:carrot_on_a_stick",
                    "components": {
                        "minecraft:custom_data": {"bestia":1}
                    }
                }
            }
        }
    },
    "rewards": {
        "function": "bestia:usebestia"
    }
}```
Continue to help post