execute if entity @e[tag=!plussed,type=#survivalplus:changed] run function survivalplus:mobs
execute if entity @e[tag=special] run function survivalplus:mobs/specialmob
execute if entity @e[tag=merchant] run function survivalplus:merchants/merchant
execute in minecraft:the_nether as @e[type=#arrows,x=0] run data merge entity @s {Fire:300s}
execute if entity @e[tag=dmgreduce] run effect give @e[tag=dmgreduce] absorption 1 0 true
execute if entity @e[tag=ng+portal] as @e[tag=ng+portal] at @s run function survivalplus:tools/newgame/ngportal
execute if entity @a[scores={sanity=..-1}] as @a[scores={sanity=..-1}] at @s run function survivalplus:tools/sanity/level
execute if entity @a[tag=titancurse] as @a[tag=titancurse] at @s run function survivalplus:giant_deal/curses
execute if score bookstats hardmode matches 9 run function survivalplus:giant_deal/bookstatstick
execute if entity @e[tag=place_wild] as @e[tag=place_wild] at @s run function survivalplus:tools/farming/place_wild

#bloodmoon
execute store result score time time run time query daytime
execute if score time time matches 12542 if predicate survivalplus:5chance run scoreboard players set bloodmoon time 1
execute if score bloodmoon time matches 1.. if score time time matches 12542 run function survivalplus:bloodmoon/bloodmoon
execute if score bloodmoon time matches 1 if score time time matches 13000..23400 run function survivalplus:bloodmoon/bloodmoontick

#execute if predicate survivalplus:100thchance if predicate survivalplus:time/night_start run function survivalplus:joke/eoc
execute if predicate survivalplus:100thchance if predicate survivalplus:time/night_start unless entity @e[tag=player1] run function survivalplus:joke/zman1
execute if predicate survivalplus:100thchance if predicate survivalplus:time/night_start unless entity @e[tag=player2] run function survivalplus:joke/b2b1