execute at @a[nbt={SelectedItem:{id:"minecraft:crossbow",tag:{frozen:1}}}] positioned ~ ~1.5 ~ run tag @e[type=arrow,distance=...3] add frozen
execute at @e[tag=frozen] run particle minecraft:snowflake
#In ground
execute at @e[tag=frozen,nbt={inGround:1b}] run place template rfi:icebox
kill @e[tag=frozen,nbt={inGround:1b}]