how would i check to see if every player on the server is in a certain gamemode

Started by faketruthss on

Topic category: Help with modding (Java Edition)

Last seen on 05:35, 17. Sep 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how would i check to see if every player on the server is in a certain gamemode

so i have an idea where i want to make it where if u die u are set to spectator and once everyone dies on a certain team it would check to see if that team is all in spectator then it would kill the other team and then respawn them all at once in survival in a different place. if anyone knows how to achieve this please let me know

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Under the "world" tab, there…
Sat, 09/23/2023 - 17:57

Under the "world" tab, there should be a "for each player in the wold as (entity iterator) do {your code}"