data merge entity @s {drop_chances:{mainhand:0.5f}}
data modify entity @s equipment.mainhand set value {id:"minecraft:diamond_sword",components:{custom_data:{withersword:tag},lore:[{"text":"Apply on Hit:","italic":false,"color":"light_purple"},{"text":"Wither II","italic":false,"color":"gray"}]}}