execute as @e[tag=svm_ep.npc_display] at @s run function svm_ep:npc/display_tick
execute as @a[tag=!svm_ep.has_entity_id] run function svm_ep:system/new_entity
execute as @a[tag=svm_ep.flora_user] at @s if biome ~ ~ ~ #svm_ep:gives_flora_passive run function svm_ep:power/flora/forest_passive
execute in svm_ep:pocket as @e[type=!#svm_ep:technical,distance=0..] at @s run function svm_ep:power/dimension_traveler/hop/restore_terrain
execute in svm_ep:pocket as @a[distance=0..] at @s if predicate svm_ep:chance/20_percent unless entity @e[tag=svm_ep.dimension_traveler_user,distance=..100] run function svm_ep:power/dimension_traveler/hop/tp2
execute in svm_ep:cherry_island as @a[distance=0..] at @s if predicate svm_ep:chance/20_percent unless entity @e[tag=svm_ep.dimension_traveler_user,distance=..100] run function svm_ep:system/dimension/back_to_previous
execute as @e[tag=svm_ep.npc_zombie,limit=15,sort=random] at @s run function svm_ep:npc/zombie/tick

scoreboard players add @e[scores={svm_ep.npc=1..,svm_ep.mana=..200},tag=svm_ep.power_user] svm_ep.mana 8

#execute if predicate svm_ep:chance/10_percent as @e[tag=svm_ep.cherry_island_placed] at @s run function svm_ep:structures/cherry_island/summon_loot
scoreboard players add %VOID_TICK svm_ep.world_settings 1
execute if score %VOID_TICK svm_ep.world_settings matches 3.. run scoreboard players set %VOID_TICK svm_ep.world_settings 1

scoreboard players enable @a svm_ep.menu

schedule function svm_ep:2s 2s
