/controlscheme

This feature is exclusive to Bedrock Edition.
 
/controlscheme
Permission level
required

1

Restrictions

Cheat only

Modifies player's control scheme of camera presets.

This command needs to be used together with /camera command.

Syntax

controlscheme <players: target> clear
Clears the control scheme.
controlscheme <players: target> set <control scheme: controlscheme>
Sets the control scheme.

Arguments

players: target: CommandSelector<Player>

Specifies the player that the control scheme will be modified.
Must be a player name or a target selector.

control scheme: controlscheme: Enum

Specifies the control scheme.
Must be a string. And it must be a single word that has no space or a double-quoted string (When quoted, \ can be used to escape characters).
Must be one of the following:
  • camera_relative — Move relative to the camera, keep the viewing angle horizontal and follow the direction of movement.
  • camera_relative_strafe — Move relative to the camera, keep the viewing angle horizontal and follow the facing.
  • locked_player_relative_strafe — Move relative to the player and follow the facing.
  • player_relative — Move relative to the player, keep the viewing angle horizontal and follow the direction of movement.
  • player_relative_strafe — Move relative to the player, keep the viewing angle horizontal and follow the facing.

Result

CommandTriggerBedrock Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
players: target fails to resolve to one or more online players. Failed
OtherwiseSuccessful

Output

CommandEditionSituationSuccess Count
AnyBedrock EditionOn fail0
On successThe number of targeted players

History

Bedrock Edition
1.21.80
Experiment
Experimental Creator Camera Features
Preview 1.21.80.27Added /controlscheme behind the "Experimental Creator Camera Features" experimental toggle.
1.21.90Preview 1.21.90.23/controlscheme is now available without using the "Experimental Creator Camera Features" experimental toggle.
Preview 1.21.90.26Control scheme camera_relative_strafe is now available without using the "Experimental Creator Camera Features" experimental toggle.

Navigation