execute at @a[nbt={SelectedItem:{tag:{frosttrue:1}}},scores={hit1=1..}] run effect give @e[distance=..7,nbt={HurtTime:10s}] minecraft:slowness 5 2
execute at @a[nbt={SelectedItem:{tag:{frosttrue:1}}},scores={hit1=1..}] run effect give @e[distance=..7,nbt={HurtTime:10s}] minecraft:mining_fatigue 10 2
scoreboard players reset @a hit1