View at: Template:Commands/content [edit]
Commands/camera - minecraft.fandom.com
Jump to navigation
Jump to search
Treść tej podstrony pochodzi z artykułu „Commands/camera” w domenie minecraft.fandom.com na licencji CC BY-NC-SA 3.0
This article is a stub.
You can help by expanding it.
This feature is exclusive to Bedrock Edition.
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> clearcamera <players: target> fadecamera <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[]
players: target: CommandSelector<Player>
- [more information needed]
- Must be a player name or a target selector.
red: int: int, green: int: int, and blue: int: int
- [more information needed]
- Must be a 32-bit integer number. And must be between 0 and 255.
fadeInSeconds: float: float, holdSeconds: float: float, and fadeOutSeconds: float: float
- Specifies the camera fade in, hold, and fade out duration.
- Must be a Single-precision floating-point format number. And must be between 0.0 and 10.0 (seconds).
preset: string: basic_string
- 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, andexample:example_player_listener.
easeTime: float: float
- Specifies the duration of the easing.
- Must be a Single-precision floating-point format number.
easeType: Easing: enum
- 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, andin_out_elastic.
default: default: basic_string
- [more information needed]
- Must be a string. And it must be a single word that has no space or a quoted string.
lookAtEntity: target: CommandSelector<Actor>
- Specifies the entity to make the camera facing to.
- Must be a player name or a target selector.
lookAtPosition: x y z: CommandPositionFloat
- Specifies the coordinates to make the camera facing to.
- Must be a three-dimensional coordinates with floating-point number elements. Accepts tilde and caret notations.
position: x y z: CommandPosition
- Specifies the camera position.
- Must be a three-dimensional coordinates composed of
<x>,<y>and<z>, each of which must be a floating-point number or tilde and caret notation.
xRot: value: RelativeFloat and yRot: value: RelativeFloat
- Specifies the camera rotation.
- Must be a rotation with float number elements, including yaw and pitch, measured in degrees.
- For the horizontal rotation (yaw), -180.0 for due north, -90.0 for due east, 0.0 for due south, 90.0 for due west, to 179.9 for just west of due north, before wrapping back around to -180.0.
- For the vertical rotation (pitch), -90.0 for straight up to 90.0 for straight down.
Result[]
This section of the article is empty.
You can help by adding to it.
Output[]
This section of the article is empty.
You can help by adding to it.
Examples[]
This section is missing information about {{{1}}}.
Please expand the section to include this information. Further details may exist on the talk page.
/camera @s set minecraft:free ease 5 in_out_circ pos ~ ~5 ~ rot 90 0
History[]
| Bedrock Edition | |||||
|---|---|---|---|---|---|
| ? | ? | Added /camera as a developer command. | |||
| Experimental Cameras (Experimental) | beta 1.20.0.22 | /camera is now behind the "Experimental Cameras" experimental toggle. | |||
| beta 1.20.10.20 | Added example:example_player_listener camera preset. | ||||
| The color fade values are now integers between 0 and 255 instead of 0.0 to 1.0. | |||||
| The camera fade in, hold, and fade out duration must be between 0.0 and 10.0 seconds. | |||||
| beta 1.20.10.23 | Added facing option. | ||||
Added example:example_player_effects camera preset. | |||||
| 1.20.30 | beta 1.20.20.22 | /camera is now available without using the "Experimental Cameras" experimental toggle. | |||