I've started making a Flood Escape (Except the flood part is magma) Map but I've started having trouble with making people tp to spawn when they touch the magma when there are multiple people playing. If someone could help me with this, I would be very thankful.

PS. I'm On Bedrock Edition


1 Answer 1


Put this command in a repeating, always active, unconditional command block:

execute @a ~ ~ ~ detect ~ ~-1 ~ magma 0 kill

This will execute the command kill at all players (@a ~ ~ ~) that have a magma block underneath them (detect ~ ~-1 ~ magma 0).

Not the answer you're looking for? Browse other questions tagged .