How to kill a player when they touch a block?

How to kill a player when they touch a block? - Black and white side view of focused female playing piano while rehearsing in room at brick wall near vase with flowers

I am making a multiplayer parkour map on bedrock edition, and I have it set up where when a player steps on a grass block they die. But when a player steps on a grass block it just kills anyone who touches it.

First: A repeat command block (set to always active and unconditional)

execute @e [type=player] ~ ~ ~ testforblock ~ ~-1 ~ grass

And then I have a chain command block (set to conditional and always active)

kill @e [type=player]

And it does work..... IF in singleplayer only. (which is not at all what I want)

Thank y'all in advance.






Pictures about "How to kill a player when they touch a block?"

How to kill a player when they touch a block? - Crop dj performing music at concert
How to kill a player when they touch a block? - Focused ethnic female touching chin while thinking on chess tactic during play with male opponent at gray background
How to kill a player when they touch a block? - Free stock photo of active, athlete, ball



How do you kill a player that touches a block in Minecraft?

You can use the command /kill @a[x=-131,y=5,z=227,dx=9,dy=0,dz=9] in a repeating command block.

How do you kill a player if they enter an area in Minecraft?

Minecraft kill command Kills everything, including the player. But should you want to kill another player, use \u201c/kill <player>\u201d. And to kill a certain type of mob, \u201c/kill @e[type=mobType]\u201d.



How to make blocks deadly in Minecraft Java! | Java 1.15+ Command Block Tutorial




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

Images: Victoria Art, Rene Asmussen, emre keshavarz, cottonbro