I want to familiarize myself with the command blocks and would like to insert fly. What's the name of the command? I play on the switch. I'm looking forward to an answer.
If you mean in Singelplayer then that goes with / gamemode 1.
On some servers this works with / fly, but you need certain rights for this…
In Singelplayer you can fly as already said in Gamemode1 by double-clicking on the button with which you jump.
The command is called
/ gamemode creative
But if you want to do it all in a Commandblock you have to
gamemode creative @p
enter. Or, instead of the @p (= player closest to you), enter the player name directly:
gamemode creative Name of the player
Alternatively, instead of "creative" of course also "spectator", depending on the application.
I do not want to play in creative mode but just fly skills and play in survival
That will not do. There's no such a command.
OK