3

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.

2

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

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

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.