execute at @e[tag=smokeable] if block ~ ~ ~ #campfires[lit=true] run particle minecraft:large_smoke ~ ~.2 ~ .1 .1 .1 .01 10
execute at @e[tag=smokeable,scores={timer=..40}] if block ~ ~ ~ #campfires[lit=true] run particle minecraft:lava ~ ~.2 ~ .1 .1 .1 .01 2
execute at @e[tag=smokeable,scores={timer=40}] if block ~ ~ ~ #campfires[lit=true] run playsound minecraft:block.fire.extinguish player @a ~ ~ ~ .5
execute as @e[tag=smokeable,scores={timer=40}] at @s if block ~ ~ ~ #campfires[lit=true] run data merge entity @s {Item:{id:"minecraft:charcoal",components:{food:{nutrition:2,saturation:1},lore:[{"text":"You burned it","color":"gray","italic":false}],consumable:{},item_name:"Burnt Meat"}}}
execute as @e[tag=smokeable,scores={timer=40}] run tag @s remove smokeable
execute as @e[tag=smokeable] at @s if block ~ ~ ~ #campfires[lit=true] run scoreboard players add @s timer 1