Survival
How to set a Nether spawn with a respawn anchor in Minecraft
Place a respawn anchor in the Nether, charge it with glowstone, and interact to set your spawn.

1. Craft the anchor
Put three crying obsidian on top, three glowstone in the middle, and three crying obsidian along the bottom.
2. Set and maintain the spawn
Charge it with glowstone and interact to set your spawn. Each respawn uses a charge. Keep it in the Nether, since trying to use it in other dimensions can cause an explosion.