# Counter effect
scoreboard players remove @s spore_poison 1
scoreboard players set @s[scores={spore_poison_2=0}] spore_poison_2 15
scoreboard players remove @s spore_poison_2 1

# Particles
execute unless predicate effects:is_baby run particle entity_effect ~ ~.7 ~ .3 .6 .3 1 0 normal
execute unless predicate effects:is_baby run particle entity_effect ~ ~.7 ~ .3 .6 .3 1 0 normal
execute if predicate effects:is_baby run particle entity_effect ~ ~.3 ~ .3 .6 .3 1 0 normal
execute if predicate effects:is_baby run particle entity_effect ~ ~.3 ~ .3 .6 .3 1 0 normal

# Effect
execute if entity @s[scores={spore_poison_2=0}] run function effects:spore_poison/damage

# Clear
execute if score @s spore_poison matches 0 run function effects:spore_poison/clear
