execute as @a[tag=anubisp] if items entity @a[tag=anubisp] container.* minecraft:netherite_sword[minecraft:custom_data={anubis:true}] unless items entity @a[tag=anubisp] weapon.mainhand minecraft:netherite_sword[custom_data={anubis:true}] run clear @s minecraft:netherite_sword[custom_data={anubis:true}]
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
advancement revoke @a only template:anubus_delete