Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Minecraft Wiki
Advertisement
Dark Oak Sapling
此条目仍需完善。

你可以帮助我们扩充关于该主题的更多信息。

Information icon
此特性为基岩版独有。
camera
需要的权限等级

1

限制条件

启用作弊

修改玩家的相机视角。

语法[]

/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>
以多种方式展示语法

参数[]

players: targetCommandSelector<Player>

[需要更多信息]
必须为玩家名或目标选择器。

red: intintgreen: intintblue: intint

[需要更多信息]
必须为32位整型数值。且必须在0和255之间。

fadeInSeconds: floatfloatholdSeconds: floatfloatfadeOutSeconds: floatfloat

指定相机的淡入、保持和淡出持续时间。
必须为单精度浮点数。且必须在0.0和10.0(秒)之间。

preset: stringbasic_string

相机视角/预设。
必须是minecraft:freeminecraft:first_personminecraft:third_personminecraft:third_person_frontexample:example_freeexample:example_player_effectsexample:example_player_listener之一。

easeTime: floatfloat

指定缓动的持续时间。
必须为单精度浮点数

easeType: Easingenum

指定一个用于相机的缓动函数/类型。
必须是linearspringin_quadout_quadin_out_quadin_cubicout_cubicin_out_cubicin_quartout_quartin_out_quartin_quintout_quintin_out_quintin_sineout_sinein_out_sinein_expoout_expoin_out_expoin_circout_circin_out_circin_bounceout_bouncein_out_bouncein_backout_backin_out_backin_elasticout_elasticin_out_elastic之一。

default: defaultbasic_string

[需要更多信息]
必须为字符串。

lookAtEntity: targetCommandSelector<Actor>

指定使相机朝向的实体。
必须为玩家名或目标选择器。

lookAtPosition: x y zCommandPositionFloat

指定使相机朝向的坐标。
必须为三维坐标,元素为浮点数。允许波浪号与脱字号标记

position: x y zCommandPosition

指定相机的位置。
必须为三维的坐标,包括<X>、<Y>和<Z>,每个值都必须是浮点数或者含有波浪号与脱字号标记

xRot: valueRelativeFloatyRot: valueRelativeFloat

指定相机的旋转角度。
必须为两个单精度浮点数组成的朝向,分别表示绕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”的历史,请见各版本页面。


语言

Advertisement