Here are the steps to create a campfire recipe –
1. Get at least three logs from any type of tree.
2. Use the Creation menu to transform one of the logs into four wooden boards and transforming two wooden boards into four sticks. You need at least three sticks to create the fire.
3. Look for a piece of coal in caves or mountains and extract it with a pickaxe.
4. In possession of all the items, use the work table to create a fire.
See more information about at https://www.mygamesetup.com/how-to-make-a-campfire-in-minecraft/