execute if block ~ ~ ~ campfire[lit=true] run particle minecraft:trial_spawner_detection ~ ~ ~ .2 .5 .2 0 1
execute if score @s cooking matches 180.. if block ~ ~ ~ campfire[lit=true] run particle minecraft:trial_spawner_detection ~ ~ ~ 0 0 0 .1 1
execute if block ~ ~ ~ soul_campfire[lit=true] run particle minecraft:trial_spawner_detection_ominous ~ ~ ~ .2 .5 .2 0 1
execute if score @s cooking matches 180.. if block ~ ~ ~ soul_campfire[lit=true] run particle minecraft:trial_spawner_detection_ominous ~ ~ ~ 0 0 0 .1 1
#execute if score @s cooking matches 180.. if block ~ ~ ~ #campfires[lit=true] run particle campfire_signal_smoke ~ ~ ~ 0 0.5 0 0.1 0

execute if block ~ ~ ~ #campfires[lit=true] run scoreboard players add @s timer 1
execute if score @s timer matches 20 run scoreboard players remove @s cooking 1

execute if score @s cooking matches ..179 if score @s timer matches 20 run effect give @a[distance=..10] minecraft:regeneration 180
execute if score @s cooking matches 180.. if score @s timer matches 20 run effect give @a[distance=..20] minecraft:regeneration 180
execute if score @s timer matches 20 if predicate survivalplus:25chance run playsound minecraft:block.fire.ambient block @a ~ ~ ~ 1 .5
execute if score @s timer matches 20 run scoreboard players set @s timer 0
execute if score @s cooking matches 0 run kill @s
execute unless block ~ ~ ~ #campfires[lit=true] run kill @s