Minecraft wiki entry for Campfire, associated text: Campfires damage mobs standing on top of them even if underwater (with exceptions such as shulkers, zombified piglins or guardians), but only if lit, campfires deal 1 and soul campfires deal 2 of damage every tick (although damage immunity reduces this to once every half-second). It also adds 160 fire ticks (8 seconds of burning).‌[Bedrock Edition only] In Java Edition, campfires do not cause lasting burning or destroy items. Damage taken is considered fire damage and is reduced by armor (which loses durability), the Resistance potion effects, and the Protection and Fire Protection enchantments. The player can avoid being damaged at all, either by using a potion of fire resistance or wearing Frost Walker boots. Crouching on a campfire also prevents damage.‌[Bedrock Edition only] In bedrock edition, Campfires do not cause armor pieces to lose durability while the player is standing on it. [needs testing]