Campfire Spawn and Tweaks (Legacy Fabric)
This mod is part of The Vanilla Experience pack and fundamentally changes campfire mechanics in Minecraft, turning them into full-fledged respawn points.

Main Features
New campfires are initially placed unlit. When you light such a campfire, a player respawn point is automatically set above it. This system works in all dimensions - the Overworld, Nether, End, and is also supported in modded dimensions.
When respawning at a campfire, the player receives 10 seconds of fire protection and appears directly above the campfire. If there are blocks above, the system automatically creates a two-block air space for safe appearance.
Campfire Management
To extinguish a campfire, you can use sand, dirt, or soul sand - simply right-click the campfire with this material. Waterlogged campfires can be dried using flint and steel.
The mod prevents accidental fire spread to adjacent blocks when interacting with the sides of the campfire.
Respawn Point Management
By crouching and right-clicking a bed, you will overwrite the campfire respawn point. A similar action with a campfire (crouch + right-click) will remove the set respawn point. You can also prevent setting a point when lighting by performing this action in advance.
Configurable Parameters
campfiresStartUnlit (default = true): New campfires are placed unlit
sneakRightClickCampfireToUnset (default = true): Cancel respawn point by crouching and right-clicking the campfire
bedsOverrideCampfireSpawn (default = true): Beds overwrite campfire respawn points
createAirPocketIfBlocksAboveCampfire (default = true): Create air pocket when respawning
sendMessageOnNewCampfireSpawnSet (default = true): Notification when new point is set
sendMessageOnCampfireSpawnUnset (default = true): Notification when point is removed
sendMessageOnCampfireSpawnMissing (default = true): Notification when point is missing on respawn
sendMessageOnCampfireSpawnOverride (default = true): Notification when point is overwritten
fireResitanceDurationOnRespawnInMs (default = 10000, min 0, max 3600000): Fire protection duration when respawning
Work Demonstration
Placing and breaking a campfire to set and remove respawn point
Extinguishing campfire using dirt
Respawning process at campfire
Respawning in the Nether from the Nether
Respawning in the Nether from the Overworld
Removing water from campfire using flint and steel
Requirements: The mod requires the Collective (Fabric) library mod and Fabric API to work.
Note: This is the version for Legacy Fabric 1.16 and 1.17. New files and updates have been moved to the main project page.