advancement grant @s only survivalplus:adventure/ngplus
stopsound @s
tag @s remove ng+
tag @s remove special
tag @s add usedgrave
tag @s remove salvagespawner
tag @s remove luckyfoot
tag @s remove chosetitan
scoreboard players set @s Deaths 0
scoreboard players set @s Kills 0
execute in overworld run tp @s 0 60 0
spreadplayers ~ ~ 0 5 false @s
gamemode survival
spawnpoint
effect clear @s
effect give @s instant_health 9 9 true
effect give @s saturation 9 9 true
execute at @s run particle end_rod ~ ~1 ~ 0 0 0 .5 50
execute at @s run particle firework ~ ~1 ~ 0 0 0 .5 50
execute at @s run particle totem_of_undying ~ ~1 ~ 0 0 0 1 30
execute at @s run particle poof ~ ~1 ~ 0 0 0 .5 50
stopsound @s
execute at @s run playsound item.trident.thunder player @a ~ ~ ~ 1 .8
execute at @s run summon lightning_bolt ~ ~500 ~
execute as @s run tellraw @a [{"selector":"@s","color":"yellow"},{"text":" has joined their NG+","color":"gold"},{"color":"green","score":{"name":" @s","objective":"newgame"}}]
#execute unless score newgame newgame matches 1 unless score nghouse newgame matches 1 run place structure survivalplus:nghouse 5 ~ 5
#scoreboard players set nghouse newgame 1
tellraw @s {"text":"Titan awaits your presence","color": "gray"}
advancement revoke @s only survivalplus:guidebook
#dejavu advancement
execute store result score hardmode seed run seed
execute if score hardmode seed = @s seed run advancement grant @s only survivalplus:ngtest/dejavu
scoreboard players reset @s seed

#advancement revoke @s only survivalplus:structures

#
#attribute @s max_health modifier remove e13339a6-de2e-4c5a-a4a6-fa1c830239af
#attribute @s attack_damage modifier remove 6c27a6a1-7e8c-4550-8466-50632506b092
#attribute @s movement_speed modifier remove 157c9194-618f-42a1-8a66-af501720237c
#attribute @s luck modifier remove 157c9194-618f-42a1-8a66-af501720237c