So I've been continuing my kino der toten map and I've been adding in some awesome redstone features, I've been up to this point avoiding posting in the forums but I must now ask for help as this idea has simply stumped me! I've been working on a "faint system" if you will that lets you revive "downed players" it's very complex and I'm trying to make it as realistic to the game as I can.
I am wondering if there is anyway you can TEST FOR A PLAYER BEING WITHIN A SPECIFIC RADIUS OF ANOTHER WHICH THEN EXECUTES THE COMMAND.
So basically, you have to be within the set radius of a player for it to execute further commands.
I have set up scoreboards to aid with other commands, with one being "fainted" which the user is added into when they die and removed upon "death" and another group named "alive" which is people who are not dead or fainted.
I am hoping their can be a command using these teams to be able to do this. Basically, it would test for @a in the team "alive" being within the radius of somebody in the team "fainted" and then execute the commmand.
Hopefully you can understand this and help me fast as I'm stumped now!
I've tried that command and it executed the command even when i was not in range of a player, i need it so it will only work if a player is standing within a radius of the player who is in a scoreboard team