相机命令
一个 Fabric 模组,尽可能忠实地在 Java 版中重现基岩版的 /camera 命令。使用单个命令即可构建过场动画、全景镜头、视野(FOV)变化以及屏幕淡入淡出效果——完全无需触碰玩家的实际控制。
玩家继续保持正常的移动、环顾四周和交互操作。 相机纯粹是一种视觉重定向:它更改屏幕上渲染的内容,而非玩家所控制的对象或实体。这意味着你可以从命令方块中驱动复杂的相机序列,而玩家则像往常一样行走、挖掘和战斗。
功能
/camera <players> clear — 结束任何活动的相机覆盖并恢复正常视图/视野
/camera <players> attach_to_entity <entity> — 视觉上跟随目标实体
/camera <players> detach_from_entity / remove_target — 停止跟随/注视目标
/camera <players> set minecraft:free ... — 将相机放置在任意位置/旋转角度,可选注视目标和缓动过渡
/camera <players> set minecraft:follow_orbit ... — 以目标实体为中心的轨道相机
/camera <players> fov_set <value> [ease] [easeType] / fov_clear — 平滑改变或恢复视野
/camera <players> fade time <in> <hold> <out> [color r g b] / fade color <r g b> — 全屏淡入/淡出
缓动曲线使用与基岩版相同的名称(如 linear、in_out_cubic、spring 等),并在标签补全中显示。
要求
- Minecraft: 1.21.11
- Fabric Loader: 0.17.3+
- Fabric API(必需)
与基岩版的差异(使用前请阅读)
Java 版的引擎没有完全相同的相机系统,因此存在一些已知的差距:
- 鼠标视角始终会旋转玩家自身的身体/视线。当自由相机处于活动状态时移动鼠标,旋转的是玩家,而非相机本身——无法实现独立于玩家的自由视角。
- 未实现
play_spline;Java 版没有等效的样条回放系统。
- 未实现固定预设如
minecraft:first_person / third_person,因为它们会与原版 F5 视角切换重叠。仅支持 minecraft:free 和 minecraft:follow_orbit。
view_offset 被近似为空间偏移,而非真正的屏幕空间偏移。
鸣谢
作者:L0TCH4
Camera Command
A Fabric mod that recreates Bedrock Edition's /camera command as faithfully as possible on
Java Edition. Build cutscenes, overview shots, FOV changes, and screen fades with a single
command — all without touching the player's actual controls.
The player keeps moving, looking around, and interacting exactly as normal. The camera is
purely a visual redirect: it changes what's rendered on screen, not who or what the player
is controlling. That means you can drive elaborate camera sequences from command blocks while
players keep walking, mining, and fighting like nothing happened.
Features
/camera <players> clear — end any active camera override and return to normal view/FOV
/camera <players> attach_to_entity <entity> — visually follow a target entity
/camera <players> detach_from_entity / remove_target — stop following/looking at a target
/camera <players> set minecraft:free ... — place the camera at any position/rotation, with
optional look-at targeting and eased transitions
/camera <players> set minecraft:follow_orbit ... — an orbiting camera centered on a target entity
/camera <players> fov_set <value> [ease] [easeType] / fov_clear — smoothly change or restore FOV
/camera <players> fade time <in> <hold> <out> [color r g b] / fade color <r g b> — full-screen fade in/out
Easing curves use the same names as Bedrock (linear, in_out_cubic, spring, etc.) and show
up in tab-completion.
Requirements
- Minecraft: 1.21.11
- Fabric Loader: 0.17.3+
- Fabric API (required)
Differences from Bedrock (please read before using)
Java Edition's engine doesn't have an identical camera system, so there are a few known gaps:
- Mouse look always turns the player's own body/view. Moving the mouse while a free camera is
active rotates the player, not the camera itself — free-look independent of the player isn't
reproduced.
play_spline isn't implemented; Java Edition has no equivalent spline-playback system.
- Fixed presets like
minecraft:first_person / third_person aren't implemented, since they'd
overlap with vanilla's own F5 perspective switching. Only minecraft:free and
minecraft:follow_orbit are supported.
view_offset is approximated as a world-space offset rather than a true screen-space offset.
Credits
Author: L0TCH4
评论 0
登录后参与评分
还没有评论,来抢沙发吧