Custom Weapon Ability - Continuation of Custom Crafting Commands

This Video is a continuation of my custom crafting video that instead involves the ability that can be used with the custom weapon that you make. COMMANDS - REPEAT ALWAYS ACTIVE (ADD ANY TICK DELAY YOU WANT) execute as @a at @s unless entity @s[y=~1.5, dy=0] if entity @s[y=~0.7, dy=0] run tag @a[hasitem={item=netherite_sword,location=slot.weapon.mainhand},tag=Nightmare] add fire REPEAT ALWAYS ACTIVE execute as @a[tag=fire] at @s if entity @a[r=5] run tag @s add breath THE REST ARE CHAIN ALWAYS ACTIVE FLAME - execute as @e[tag=breath] at @s run particle minecraft:mobflame_single ^^1^1 execute as @e[tag=breath] at @s run particle minecraft:mobflame_single ^^1^2 execute as @e[tag=breath] at @s run particle minecraft:mobflame_single ^^1^3 execute as @e[tag=breath] at @s run particle minecraft:mobflame_single ^^1^4 execute as @e[tag=breath] at @s run particle minecraft:mobflame_single ^^1^5 SOUND - execute as @e[tag=breath] at @s run playsound mob.ghast.fireball @a[r=10] ~~~ 1 1 DAMAGE - execute as @e[tag=breath] at @s run execute positioned ^^^3 run damage @e[r=3,tag=!Nightmare] 4 fire entity @s execute as @e[tag=breath] at @s run execute positioned ^^^3 run effect @e[r=3,tag=!Nightmare] wither 5 2 STOP - tag @e[tag=breath,tag=fire] remove fire tag @e[tag=breath,tag=!fire] remove breath