#spear
execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:wooden_spear,quantity=0},tag=scharge] ~~~ kill @e[type=pixel:spear_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:stone_spear,quantity=0},tag=scharge] ~~~ kill @e[type=pixel:spear_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:iron_spear,quantity=0},tag=scharge] ~~~ kill @e[type=pixel:spear_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:golden_spear,quantity=0},tag=scharge] ~~~ kill @e[type=pixel:spear_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:diamond_spear,quantity=0},tag=scharge] ~~~ kill @e[type=pixel:spear_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:netherite_spear,quantity=0},tag=scharge] ~~~ kill @e[type=pixel:spear_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:wooden_spear,quantity=0},tag=scharge] ~~~ tag @s remove scharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:stone_spear,quantity=0},tag=scharge] ~~~ tag @s remove scharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:iron_spear,quantity=0},tag=scharge] ~~~ tag @s remove scharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:golden_spear,quantity=0},tag=scharge] ~~~ tag @s remove scharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:diamond_spear,quantity=0},tag=scharge] ~~~ tag @s remove scharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:netherite_spear,quantity=0},tag=scharge] ~~~ tag @s remove scharge

#katana
execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:wooden_katana,quantity=0},tag=kcharge] ~~~ kill @e[type=pixel:katana_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:stone_katana,quantity=0},tag=kcharge] ~~~ kill @e[type=pixel:katana_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:iron_katana,quantity=0},tag=kcharge] ~~~ kill @e[type=pixel:katana_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:golden_katana,quantity=0},tag=kcharge] ~~~ kill @e[type=pixel:katana_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:diamond_katana,quantity=0},tag=kcharge] ~~~ kill @e[type=pixel:katana_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:netherite_katana,quantity=0},tag=kcharge] ~~~ kill @e[type=pixel:katana_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:wooden_katana,quantity=0},tag=kcharge] ~~~ tag @s remove kcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:stone_katana,quantity=0},tag=kcharge] ~~~ tag @s remove kcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:iron_katana,quantity=0},tag=kcharge] ~~~ tag @s remove kcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:golden_katana,quantity=0},tag=kcharge] ~~~ tag @s remove kcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:diamond_katana,quantity=0},tag=kcharge] ~~~ tag @s remove kcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:netherite_katana,quantity=0},tag=kcharge] ~~~ tag @s remove kcharge

#longsword
execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:wooden_longsword,quantity=0},tag=lcharge] ~~~ kill @e[type=pixel:longsword_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:stone_longsword,quantity=0},tag=lcharge] ~~~ kill @e[type=pixel:longsword_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:iron_longsword,quantity=0},tag=lcharge] ~~~ kill @e[type=pixel:longsword_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:golden_longsword,quantity=0},tag=lcharge] ~~~ kill @e[type=pixel:longsword_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:diamond_longsword,quantity=0},tag=lcharge] ~~~ kill @e[type=pixel:longsword_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:netherite_longsword,quantity=0},tag=lcharge] ~~~ kill @e[type=pixel:longsword_damage,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:wooden_longsword,quantity=0},tag=lcharge] ~~~ tag @s remove lcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:stone_longsword,quantity=0},tag=lcharge] ~~~ tag @s remove lcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:iron_longsword,quantity=0},tag=lcharge] ~~~ tag @s remove lcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:golden_longsword,quantity=0},tag=lcharge] ~~~ tag @s remove lcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:diamond_longsword,quantity=0},tag=lcharge] ~~~ tag @s remove lcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:netherite_longsword,quantity=0},tag=lcharge] ~~~ tag @s remove lcharge

#lance
execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:wooden_lance,quantity=0},tag=pcharge] ~~~ kill @e[type=pixel:lance_charge,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:stone_lance,quantity=0},tag=pcharge] ~~~ kill @e[type=pixel:lance_charge,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:iron_lance,quantity=0},tag=pcharge] ~~~ kill @e[type=pixel:lance_charge,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:golden_lance,quantity=0},tag=pcharge] ~~~ kill @e[type=pixel:lance_charge,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:diamond_lance,quantity=0},tag=pcharge] ~~~ kill @e[type=pixel:lance_charge,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:netherite_lance,quantity=0},tag=pcharge] ~~~ kill @e[type=pixel:lance_charge,c=1]

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:wooden_lance,quantity=0},tag=pcharge] ~~~ tag @s remove pcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:stone_lance,quantity=0},tag=pcharge] ~~~ tag @s remove pcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:iron_lance,quantity=0},tag=pcharge] ~~~ tag @s remove pcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:golden_lance,quantity=0},tag=pcharge] ~~~ tag @s remove pcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:diamond_lance,quantity=0},tag=pcharge] ~~~ tag @s remove pcharge

execute @a[c=1,hasitem={location=slot.weapon.mainhand,item=pixel:netherite_lance,quantity=0},tag=pcharge] ~~~ tag @s remove pcharge