execute unless entity @s[gamemode=creative] unless items entity @s weapon.mainhand *[custom_data~{wizard_battle:1b}] run item modify entity @s weapon.mainhand pctf:remove1
execute if items entity @s weapon.mainhand *[custom_data~{wizard_battle:1b}] run scoreboard players add @s spell_cooldown2 1200
function pctf:logic/items/lucky_block/effects/invulnerable/start {ticks: "140", seconds: "7"}

scoreboard players add @s spell_cooldown2 20