particle minecraft:flame ~ ~ ~ 0 0 0 0.025 1 normal @a[distance=2..]
particle minecraft:small_flame ~ ~ ~ 0 0 0 0.1 1 normal @a[distance=2..]
scoreboard players add @s generic_timer 1
execute if score @s generic_timer matches 5 run particle minecraft:lava ~ ~ ~ 0 0 0 0 1 normal @a[distance=2..]
execute if score @s generic_timer matches 5.. run scoreboard players set @s generic_timer 0