execute if score time time matches 12542..23400 run advancement grant @a only survivalplus:tips/bloodmoon
execute as @e[type=#minecraft:arrows,predicate=survivalplus:overworld,tag=!critcheck] run function survivalplus:bloodmoon/skeleton_crit
function survivalplus:bloodmoon/upgrade_mob
worldborder warning distance 100000000
execute if score bloodmoon Insomnia matches 1.. run scoreboard players remove bloodmoon Insomnia 1
execute if entity @e[tag=boogie] run scoreboard players set bloodmoon Insomnia 200

execute if entity @e[tag=boogie] run function survivalplus:mobs/boogieman
execute if entity @e[tag=wraith] as @e[tag=wraith] at @s run function survivalplus:mobs/wraith_particle
execute if entity @e[tag=living_armor] run function survivalplus:mobs/larmor_particle
execute if score time time matches 23400 run function survivalplus:bloodmoon/endbloodmoon