scoreboard players remove @s infected_timer 1

scoreboard players add @s infected_timer2 1

execute if score @s infected_timer2 matches 22..24 run function pctf:logic/items/lucky_block/effects/infected/start_twitch
execute if score @s infected_timer2 matches 24.. run scoreboard players set @s infected_timer2 0

particle minecraft:squid_ink ~ ~1 ~ 2 2 2 0.01 1 force @a[distance=..8]