execute if entity @s[tag=!spore_poison] run scoreboard players add @s n_effects 1

execute if entity @s[tag=!spore_poison] run scoreboard players operation @s spore_poison = duration n_effects
execute if entity @s[tag=spore_poison] if score @s spore_poison < duration n_effects run scoreboard players operation @s spore_poison = duration n_effects

execute unless score @s spore_poison_2 matches ..0 unless score @s spore_poison_2 matches 0.. run scoreboard players set @s spore_poison_2 3

tag @s add spore_poison
