你可以帮助我们扩充关于该主题的更多信息。
修改玩家的相机视角。
语法[]
/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>
- 以多种方式展示语法
简化的语法树: 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>
扩充版: 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>
参数[]
players: target
:CommandSelector<Player>
[需要更多信息] - 必须为玩家名或目标选择器。
red: int
:int、green: int
:int和blue: int
:int
[需要更多信息] - 必须为32位整型数值。且必须在0和255之间。
fadeInSeconds: float
:float、holdSeconds: float
:float和fadeOutSeconds: float
:float
- 指定相机的淡入、保持和淡出持续时间。
- 必须为单精度浮点数。且必须在0.0和10.0(秒)之间。
preset: string
:basic_string
- 相机视角/预设。
- 必须是
minecraft:free
、minecraft:first_person
、minecraft:third_person
、minecraft:third_person_front
、example:example_free
、example:example_player_effects
和example:example_player_listener
之一。
easeTime: float
:float
- 指定缓动的持续时间。
- 必须为单精度浮点数。
easeType: Easing
:enum
- 指定一个用于相机的缓动函数/类型。
- 必须是
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
和in_out_elastic
之一。
default: default
:basic_string
[需要更多信息] - 必须为字符串。
lookAtEntity: target
:CommandSelector<Actor>
- 指定使相机朝向的实体。
- 必须为玩家名或目标选择器。
lookAtPosition: x y z
:CommandPositionFloat
- 指定使相机朝向的坐标。
- 必须为三维坐标,元素为浮点数。允许波浪号与脱字号标记。
position: x y z
:CommandPosition
- 指定相机的位置。
- 必须为三维的坐标,包括<X>、<Y>和<Z>,每个值都必须是浮点数或者含有波浪号与脱字号标记。
xRot: value
:RelativeFloat和yRot: value
:RelativeFloat
- 指定相机的旋转角度。
- 必须为两个单精度浮点数组成的朝向,分别表示绕Y轴旋转和绕X轴旋转,以度为单位。
- 绕Y轴旋转时,-180.0表示北,-90.0表示东,0.0表示南,90.0表示西。
- 绕X轴旋转时,竖直上方为-90.0,至竖直下方90.0。
- 波浪号将相对于执行者进行旋转。
效果[]
你可以帮助我们加入信息。
输出[]
你可以帮助我们加入信息。
示例[]
/camera @s set minecraft:free ease 5 in_out_circ pos ~ ~5 ~ rot 90 0
历史[]
关于“命令/camera”的历史,请见各版本页面。
关于“命令/camera”的历史,请见各版本页面。
关于“命令/camera”的历史,请见各版本页面。
关于“命令/camera”的历史,请见各版本页面。
关于“命令/camera”的历史,请见各版本页面。
关于“命令/camera”的历史,请见各版本页面。
关于“命令/camera”的历史,请见各版本页面。
语言