How To Tp Players When They Touch A Certain Block In Multiplayer [duplicate]

How To Tp Players When They Touch A Certain Block In Multiplayer [duplicate] - Two Men Playing Volleyball Near Red Canopy

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



Best Answer

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).




Pictures about "How To Tp Players When They Touch A Certain Block In Multiplayer [duplicate]"

How To Tp Players When They Touch A Certain Block In Multiplayer [duplicate] - Volleyball Players Spiking a Ball Through Blockers
How To Tp Players When They Touch A Certain Block In Multiplayer [duplicate] - Men Running Playing Football during Daytime
How To Tp Players When They Touch A Certain Block In Multiplayer [duplicate] - Men Playing Volley Inside a Covered Court



How do you test a player on a particular block?

2. Type the Command
  • Test if Players are within 10 blocks. In this example, we will test to see if there are any players within a 10 block radius with the following command: /testfor @a[r=10] ...
  • Test if Mooshrooms are within 50 blocks. ...
  • Test if Nearest Player is at Level 20 experience.




  • How to teleport a player randomly using command blocks || Minecraft Bedrock | Pocket Edition




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Jim De Ramos, Pavel Danilyuk, Pixabay, Pavel Danilyuk