Hey guys, I am working on my own minecraft server and i am working on a minigame.
I have 2 teams, for example: Team 1 and Team 2
What i want:
- Players from team 1 can't hit other players from team 1
- Players from team 1 can hit players from team 2
- Players from team 2 can't hit other players from team 2
- Players from team 2 can hit players from team 1
All the players in team 1 get added in variable: {team1::*}
All the players in team 2 get added in the variable: {team2::*}
Example code:
or
Can someone help me how i can put in my code that you cant hit your own team.
I have 2 teams, for example: Team 1 and Team 2
What i want:
- Players from team 1 can't hit other players from team 1
- Players from team 1 can hit players from team 2
- Players from team 2 can't hit other players from team 2
- Players from team 2 can hit players from team 1
All the players in team 1 get added in variable: {team1::*}
All the players in team 2 get added in the variable: {team2::*}
Example code:
code_language.skript:
add player to {team1::*}
code_language.skript:
add player to {team2::*}
Can someone help me how i can put in my code that you cant hit your own team.