playsound minecraft:entity.player.levelup ambient @s ~ ~ ~ 1 1
effect clear @s
item replace entity @s[nbt={equipment:{head:{components:{"minecraft:custom_data":{curseArmor:1b}}}}}] armor.head with air 1
item replace entity @s[nbt={equipment:{chest:{components:{"minecraft:custom_data":{curseArmor:1b}}}}}] armor.chest with air 1
item replace entity @s[nbt={equipment:{legs:{components:{"minecraft:custom_data":{curseArmor:1b}}}}}] armor.legs with air 1
item replace entity @s[nbt={equipment:{feet:{components:{"minecraft:custom_data":{curseArmor:1b}}}}}] armor.feet with air 1
scoreboard players set @s evsw_sectime 0
scoreboard players set @s evsw_seccount 0
scoreboard players set @s evsw_secdeath 0
scoreboard players set @s evsw_secsneak 0
scoreboard players set @s evsw_secjump 0
scoreboard players set @s evsw_sectrig1 0
scoreboard players set @s evsw_sectrig2 0
scoreboard players set @s evsw_secpunch 0
scoreboard players set @s evsw_secdmgtkn 0
scoreboard players set @s evsw_secdmgres 0
scoreboard players set @s evsw_secrun 0
scoreboard players set @s evsw_seckill 0
function superpowers:secondary/book/sec_attclear
function superpowers:generic/generic_flyoff
scoreboard players set @s evsw_survtrig 0
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{secbook:1}}}}] run return run function superpowers:secondary/book/sec_setup_notadmin
advancement grant @s[advancements={superpowers:lvl_sec1=false}] only superpowers:lvl_sec1
scoreboard players enable @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{adminsecbook:1}}}}] evsw_survtrig