1
I've seen maps do this before. How do I make it where if a player steps on let's say red wool for example, they die. My first thought was that they use the /testfor player on each coordinate where the block is but that seemed like too much work for people with big maps. Is there a simple way to execute the /kill command when a player steps on a specific block type? (In this case, Red Wool)
Create an account or sign in to comment.
7
2
If you put this:
in a command block and connect it to a redstone clock, it should kill anyone who steps on red wool.
I'm not certain that it'll work with multiple players, though.
/execute @a ~ ~ ~ detect ~ ~-1 ~ wool 14 kill @p
in a command block and connect it to a redstone clock, it should kill anyone who steps on red wool.
I'm not certain that it'll work with multiple players, though.
1
Might want to do this:
in case if any buggy mass killing goes on.
/execute @a ~ ~ ~ detect ~ ~-1 ~ wool 14 kill @p[r=1]
in case if any buggy mass killing goes on.
1
There's no point in adding the "[r=1]", because you will still be the closest player if you were to use @p.
1
Though, what if the game thought the player was still alive, then bugged out, and killed everyone in the area.
1
It can´t bug out, it would only kill everyone else staying on that type of wool, and when the person dies it can´t target it again.
1
That should work with multiple people, it's the same command I would have given.
1
I guess some developers could code something together. I would suggest taking the time to do the ./testfor's.