1

Command help

Silverfish003 11/27/20 1:56 am
99
11/29/2020 9:14 am
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?
Posted by
Silverfish003
Level 19 : Journeyman Cake
4

  Have something to say?

JoinSign in

5

HoboMaggot
11/27/2020 3:47 am
Level 55 : Grandmaster Blob
Wait, so to elaborate, when someone else jumps in the wool you're on, you get killed?

What are the commands you're using
1
Silverfish003
11/27/2020 4:36 am
Level 19 : Journeyman Cake
/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
1
HoboMaggot
11/27/2020 8:43 pm
Level 55 : Grandmaster Blob
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
/execute as @a at @s if block ~ ~-1 ~ blue_wool run kill @sThis will kill the person who lands on the wool
2
Silverfish003
11/29/2020 9:14 am
Level 19 : Journeyman Cake
Thank you, I´ll try that, but I´ll know if it works after the map will be finished.
1
Silverfish003
11/27/2020 4:43 am
Level 19 : Journeyman Cake
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
1

Welcome