if all:
projectile is a snowball
projectile has the scoreboard tag "set"
projectile does not have scoreboard tag "fallingBall"
victim is a player
victim's gamemode is adventure
score of victim for objective with id "invincibility" is 0
victim is not shooter
shooter is an entity
victim does not have scoreboard tag "recentKill"
{victim.team} is not equal to {shooter.team}
then:
execute console command "scoreboard players tag %victim's uuid% add recentKill"
set victim's gamemode to spectator
launch ball large coloured red, purple and white fading to light green and black at victim's location with duration 0.65
kill projectile
set score of victim for objective with id "charge" to 0
set score of victim for objective with id "deathTimer" to 61
add 1 to score of shooter for objective with id "points"
broadcast "§b❆--§c|%victim%| §4← §3|%shooter%|§b--❆"
wait 2 seconds
execute console command "scoreboard players tag %victim's uuid% remove recentKill"```
soo even if the code gives 0 errors
```{victim.team} is not equal to {shooter.team}``` this line isn't working properly
even if the victim and the shooter is in the same team it do pass the player to the then part
#why this isn't working ;(
1 messages · Page 1 of 1 (latest)
why can't I do with variables (soo simply I'm trynna confirm that the victim is not in the same team of the shooter)
every time I don't go in this way
{victim.team} is not equal to {shooter.team}
it says Can't understand this condition
but I can't set multiple thing to the variable since it can be either "red , red or red, blue"
there are total of 4 colors soo there are many possible outcomes