execute on origin run advancement grant @s only survivalplus:adventure/tools/rabbit_foot
execute store result score @s itemcount run data get entity @s Item.count
execute at @s run particle poof ~ ~.2 ~ .1 .1 .1 .1 10
execute at @s run playsound minecraft:entity.rabbit.hurt neutral @a ~ ~ ~ .5 1
data modify entity @s Item set value {id:"minecraft:rabbit_foot",components:{"minecraft:custom_data":{luck:tag},rarity:uncommon,"minecraft:enchantment_glint_override":1b,"minecraft:lore":[[{"text":"Allows special drops from mobs","italic":false,"color":"gray"}],[{"text":"and other special things","italic":true,"color":"yellow"}]]}}
execute store result entity @s Item.count short 1 run scoreboard players get @s itemcount