tag @s remove player_hurt_entity


execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.ice_breaker:1b}}}}] at @s run function svm_ep:items/hammer/ice/attack

execute as @s[scores={svm_ep.using_move=101..200},tag=svm_ep.dimension_traveler_user] run function svm_ep:power/dimension_traveler/gate/shoot
execute as @s[scores={svm_ep.using_move=101001..101100}] run function svm_ep:non_power/punch/punch
execute as @s[scores={svm_ep.p.fire_arms=1..},tag=svm_ep.fire_user] run function svm_ep:power/fire/arms/damage_entity

execute as @s[scores={svm_ep.selected_style_ability=1..}] run function svm_ep:fighting_style/left_click
execute as @s[scores={svm_ep.holding_gauntlet=1}] at @s run function svm_ep:items/gauntlet/player_hit_entity
execute as @s[scores={svm_ep.holding_nunchucks=1}] at @s run function svm_ep:items/nunchucks/player_hit_entity
execute as @s[scores={svm_ep.holding_gauntlet=3}] at @s run function svm_ep:items/gauntlet/player_hit_entity
execute as @s[scores={svm_ep.holding_nunchucks=3}] at @s run function svm_ep:items/nunchucks/player_hit_entity
execute as @s[scores={svm_ep.charged_hammer=1..}] at @s run function svm_ep:items/hammer/hit
execute as @s[scores={svm_ep.charged_tengu=1..}] at @s run function svm_ep:items/tengu/hit


execute if predicate svm_ep:holding/sword run tag @s add sword_held
tag @s[scores={svm_ep.holding_katana=1}] add sword_held
tag @s[scores={svm_ep.holding_katana=3}] add sword_held
#execute if predicate svm_ep:chance/20_percent run item modify entity @s[scores={svm_ep.holding_katana=1}] weapon svm_ep:damage
#execute if predicate svm_ep:chance/20_percent run item modify entity @s[scores={svm_ep.holding_katana=3}] weapon svm_ep:damage
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.katana:1b}}}}] unless entity @s[scores={svm_ep.using_move=10000..}] as @s[scores={svm_ep.checked_click=..-2}] run function svm_ep:items/sword_slash
tag @s remove svm_ep.check_click

tag @s remove sword_held
execute as @s[nbt={SelectedItem:{id:"minecraft:bamboo"}}] at @s run playsound minecraft:block.bamboo.break player @a[distance=..30] ~ ~1 ~ 12 0.6
execute as @s[tag=svm_ep.bamboost] at @s run playsound minecraft:block.bamboo_wood.place master @a[distance=..30] ~ ~1 ~ 2 0.6

