playsound minecraft:entity.player.levelup ambient @s ~ ~ ~ 1 1
effect clear @s
scoreboard players set @s evsw_powertrig1 0
scoreboard players set @s evsw_powertrig2 0
scoreboard players set @s evsw_powertrig3 0
scoreboard players set @s evsw_powertrig4 0
scoreboard players set @s evsw_powertrig5 0
scoreboard players set @s evsw_powertrig6 0
scoreboard players set @s evsw_powertrig7 0
scoreboard players set @s evsw_ptoggle1 0
scoreboard players set @s evsw_ptoggle2 0
scoreboard players set @s evsw_ptoggle3 0
scoreboard players set @s evsw_sneak 0
scoreboard players set @s evsw_cclick 0
scoreboard players set @s evsw_jump 0
scoreboard players set @s evsw_playerdeath 0
function superpowers:book/book_att_rem
function superpowers:base_tagrem
function superpowers:config_player
function superpowers:generic/generic_flyoff
clear @s elytra[custom_data={pwrwings:1}] 1
scoreboard players set @s evsw_survtrig 0
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{survbook:1}}}}] run return run function superpowers:book/power_setup_notadmin
advancement grant @s[advancements={superpowers:lvl1=false}] only superpowers:lvl1
scoreboard players enable @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{adminbook:1}}}}] evsw_survtrig