scoreboard players set @s svm_ep.using_move 31514357
loot replace entity @s weapon.mainhand loot svm_ep:items/random_sword
item modify entity @s weapon.offhand svm_ep:consume


execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.katana_water:1b}}}}] run advancement grant @s only svm_ep:water_slash
advancement grant @s only svm_ep:storyline/get_katana_skin
tellraw @s ["",{"text":"| ","color":"gray"},{"text":"Y","color":"red"},{"text":"our sword's","color":"#FF696C"},{"text":" appea","color":"#FF8B8C"},{"text":"ra","color":"#FFA8A9"},{"text":"nce ha","color":"#FFBDBE"},{"text":"s b","color":"#FFA8A9"},{"text":"een tra","color":"#FF8B8C"},{"text":"nsforme","color":"#FF696C"},{"text":"d","color":"red"},{"text":"!","color":"#FF2C2E"}]
execute at @s run playsound minecraft:block.anvil.use master @a[distance=..20] ~ ~ ~ 1 0.83
execute at @s run playsound minecraft:entity.firework_rocket.twinkle master @a[distance=..20] ~ ~ ~ 1 1.7
execute at @s run particle minecraft:end_rod ~ ~0.85 ~ 0 0 0 0.6 50