1
Command help
I´m doing a Co-op map, and I need to help with a command - when you jump off in a blue wool, you get killed by execute command. Easy, but when someone jumps in it, it kills the other player who should not and does not kill the player that should be killed, or kills nobody at all. How to fix that?
5
Wait, so to elaborate, when someone else jumps in the wool you're on, you get killed?
What are the commands you're using
What are the commands you're using
/execute at @p if block ~ ~-1 ~ blue_wool run kill @p
--------
It kills the other player, and the player who is standing on the wool is completely chill, althrough they should be dead. I some cases it does kill as it should or kills nobody. I used one video from one of my previous maps that used the same concept. The map was for singleplayer, but the youtuber broke rules and played it in 2 players. Go play "The rise of a shulker box" in multiplayer, and you´ll see what I mean
--------
It kills the other player, and the player who is standing on the wool is completely chill, althrough they should be dead. I some cases it does kill as it should or kills nobody. I used one video from one of my previous maps that used the same concept. The map was for singleplayer, but the youtuber broke rules and played it in 2 players. Go play "The rise of a shulker box" in multiplayer, and you´ll see what I mean
Assuming you're using command blocks, this command will target the player nearest to the command block itself.
However when the nearest person steps on the blue wool, if another person is near the command block and not stepping on the blue wool, itll kill them instead.
This command might fix it
However when the nearest person steps on the blue wool, if another person is near the command block and not stepping on the blue wool, itll kill them instead.
This command might fix it
/execute as @a at @s if block ~ ~-1 ~ blue_wool run kill @sThis will kill the person who lands on the woolThank you, I´ll try that, but I´ll know if it works after the map will be finished.
This could have been prevented by just making the map insane. I mean, that both players share one life, and if one dies, the level restarts. But I don´t want to be evil
