execute if score @p[tag=anubisp] anubis_cooldown matches 5 run function template:anubis/sword_dash
item replace entity @p[tag=anubisp] weapon.offhand with air
item replace entity @a[tag=anubisp] container.8 with minecraft:netherite_sword[minecraft:item_model="template:anubis",minecraft:custom_name=Anubis,custom_data={anubis:true},minecraft:swing_animation={type:"stab",duration:3},minecraft:blocks_attacks={},minecraft:unbreakable={}] 1