Commands/camera

Modifies player's camera view.
== Syntax ==
: /camera <players: target> . . .
:* … clear
:* … fade . . .
:** … color <red: int> <green: int> <blue: int>
:** … time <fadeInSeconds: float> <holdSeconds: float> <fadeOutSeconds: float> . . .
:*** … color <red: int> <green: int> <blue: int>
:* … set <preset: string> . . .
:** … [default: default]
:** … facing . . .
:*** … <lookAtEntity: target>
:*** … <lookAtPosition: x y z>
:** … pos <position: x y z> . . .
:*** … facing . . .
:**** … <lookAtEntity: target>
:**** … <lookAtPosition: x y z>
:*** … rot <xRot: value> <yRot: value>
:** … rot <xRot: value> <yRot: value>
:** … ease <easeTime: float> <easeType: Easing> . . .
:*** … [default: default]
:*** … facing . . .
:**** … <lookAtEntity: target>
:**** … <lookAtPosition: x y z>
:*** … pos <position: x y z> . . .
:**** … facing . . .
:***** … <lookAtEntity: target>
:***** … <lookAtPosition: x y z>
:**** … rot <xRot: value> <yRot: value>
:*** … rot <xRot: value> <yRot: value>
::Syntax displayed in various ways
:::
Simplified tree:
: camera <players: target> . . .
:* … clear
:* … fade . . .
:** … color <red: int> <green: int> <blue: int>
:** … time <fadeInSeconds: float> <holdSeconds: float> <fadeOutSeconds: float> . . .
:*** … color <red: int> <green: int> <blue: int>
:* … set <preset: string> . . .
:** … [default: default]
:** … ease <easeTime: float> <easeType: Easing> . . .
:*** … [default: default]
:*** … facing <lookAtEntity: target>
:*** … facing <lookAtPosition: x y z>
:*** … pos <position: x y z> . . .
:**** … facing <lookAtEntity: target>
:**** … facing <lookAtPosition: x y z>
:**** … rot <xRot: value> <yRot: value>
:*** … rot <xRot: value> <yRot: value>
:** … facing <lookAtEntity: target>
:** … facing <lookAtPosition: x y z>
:** … pos <position: x y z> . . .
:*** … facing <lookAtEntity: target>
:*** … facing <lookAtPosition: x y z>
:*** … rot <xRot: value> <yRot: value>
:** … rot <xRot: value> <yRot: value>
:::
Maximised:
: camera <players: target> clear
: camera <players: target> fade
: camera <players: target> fade color <red: int> <green: int> <blue: int>
: camera <players: target> fade time <fadeInSeconds: float> <holdSeconds: float> <fadeOutSeconds: float>
: camera <players: target> fade time <fadeInSeconds: float> <holdSeconds: float> <fadeOutSeconds: float> color <red: int> <green: int> <blue: int>
: camera <players: target> set <preset: string> [default: default]
: camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> [default: default]
: camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> facing <lookAtEntity: target>
: camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> facing <lookAtPosition: x y z>
: camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> pos <position: x y z>
: camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> pos <position: x y z> facing <lookAtEntity: target>
: camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> pos <position: x y z> facing <lookAtPosition: x y z>
: camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> pos <position: x y z> rot <xRot: value> <yRot: value>
: camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> rot <xRot: value> <yRot: value>
: camera <players: target> set <preset: string> facing <lookAtEntity: target>
: camera <players: target> set <preset: string> facing <lookAtPosition: x y z>
: camera <players: target> set <preset: string> pos <position: x y z>
: camera <players: target> set <preset: string> pos <position: x y z> facing <lookAtEntity: target>
: camera <players: target> set <preset: string> pos <position: x y z> facing <lookAtPosition: x y z>
: camera <players: target> set <preset: string> pos <position: x y z> rot <xRot: value> <yRot: value>
: camera <players: target> set <preset: string> rot <xRot: value> <yRot: value>
== Arguments ==
: 
: 
, , and 
: 
: And must be between 0 and 255. 
, , and 
: Specifies the camera fade in, hold, and fade out duration.
: And must be between 0.0 and 10.0 (seconds). 
: A camera view/preset.
: Must be one of minecraft:free, minecraft:first_person, minecraft:third_person, minecraft:third_person_front, example:example_free, example:example_player_effects, and example:example_player_listener.
: Specifies the duration of the easing.
: 
: Specifies an easing function/type to use for the camera.
: Must be one of linear, spring, in_quad, out_quad, in_out_quad, in_cubic, out_cubic, in_out_cubic, in_quart, out_quart, in_out_quart, in_quint, out_quint, in_out_quint, in_sine, out_sine, in_out_sine, in_expo, out_expo, in_out_expo, in_circ, out_circ, in_out_circ, in_bounce, out_bounce, in_out_bounce, in_back, out_back, in_out_back, in_elastic, out_elastic, and in_out_elastic.
: 
: 
: Specifies the entity to make the camera facing to.
: 
: Specifies the coordinates to make the camera facing to.
: 
: Specifies the camera position.
: 
 and 
: Specifies the camera rotation.
: 
== Result ==
== Output ==
== Examples ==
* /camera @s set minecraft:free ease 5 in_out_circ pos ~ ~5 ~ rot 90 0
== History ==
pt:Comandos/camera
zh:命令/camera