Summary:
With the changes made in https://www.minecraft.net/article/minecraft-snapshot-20w30a, beds and respawn anchors avoid respawning you onto dangerous blocks, including magma blocks. However, this does not apply, if there are carpets or trapdoors placed above them.
Steps to reproduce:
Set your spawnpoint using a bed or respawn anchor
/gamerule doImmediateRespawn true
/kill
Replace the block you are standing on with a magma block
/kill
Place a carpet or trapdoor on top of the magma block.
/kill
Observed results:
You respawned on top the carpet or trapdoor despite it being on magma block, meaning you will take damage.
Expected results:
The game should avoid respawning you on carpets and trapdoors that are placed on top of magma blocks
Related issues
Attachments
Comments

relates to MC-176640