execute at @s run playsound minecraft:block.vine.place master @a[distance=..30] ~ ~ ~ 2 0
execute at @s anchored eyes run summon marker ~ ~ ~ {Tags:["new","svm_ep.flora_vine"]}
scoreboard players operation @e[tag=new] svm_ep.entity_id = @s svm_ep.entity_id
scoreboard players set @e[tag=new] svm_ep.projectile 10
tp @e[tag=new] @s
execute at @s anchored eyes positioned ^ ^ ^0.6 run tp @e[tag=new] ~ ~ ~

#scoreboard players remove @s svm_ep.mana 10
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.vine:1b}}}}] run tag @s add main

item modify entity @s[tag=!svm_ep.flora_user,tag=main] weapon svm_ep:damage20
item modify entity @s[tag=!svm_ep.flora_user,tag=!main] weapon.offhand svm_ep:damage20

item modify entity @s[tag=!svm_ep.flora_user,tag=main,nbt={SelectedItem:{tag:{Damage:100}}}] weapon svm_ep:consume
item modify entity @s[tag=!svm_ep.flora_user,tag=!main,nbt={Inventory:[{Slot:-106b,tag:{Damage:100}}]}] weapon.offhand svm_ep:consume

tag @s remove main
execute at @s run tag @e[distance=..5] remove new