How to make command to change gamemode

Started by DivideBy0 on

Topic category: Help with modding (Java Edition)

Last seen on 01:06, 20. Mar 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make command to change gamemode

i am trying to make a command that will switch players out of the spectating part of hardcore and back into survival, but i don't know how to make the command target specific players. help?