Minecraft 的非官方资料库:
Creator Camera 特性
此数据包为 Minecraft 添加了一套框架,用于实现平滑的摄像机功能。
本数据包隶属于 Minecraft unOfficial Project。
文档
以下信息同样可以在数据包内部找到(documentation.txt)
安装
- 将此包放入世界目录下的
/datapacks 文件夹中。
- 使用
/reload 命令或重新加入世界。
- 完成
函数
以下是供创作者使用的函数:
Load Camera
/function ccf:load_camera {"pos":"<position>","yaw":<yaw>,"pitch":<pitch>,"players":"<players>"}
此函数加载摄像机,参数如下:
<position> = 摄像机生成的位置。示例:0 64 0
<yaw> = 摄像机生成时的水平旋转角度,范围在 -180 到 180 之间。示例:-150
<pitch> = 摄像机生成时的垂直旋转角度,范围在 -90 到 90 之间。示例:-5
<players> = 处于摄像机第一人称视角的玩家。示例:@a[type=player]
Unload Camera
/function ccf:unload_camera {"gamemode":"<gamemode>"}
此函数卸载摄像机,参数如下:
<gamemode> = 玩家退出摄像机模式后的游戏模式。示例:adventure
Cut
/function ccf:cut {"pos":"<position>","yaw":<yaw>,"pitch":<pitch>}
此函数切换摄像机的位置,参数如下:
<position> = 摄像机生成的位置。示例:0 64 0
<yaw> = 摄像机生成时的水平旋转角度,范围在 -180 到 180 之间。示例:-150
<pitch> = 摄像机生成时的垂直旋转角度,范围在 -90 到 90 之间。示例:-5
Move
/function ccf:move {"pos":"<position>","yaw":<yaw>,"pitch":<pitch>,"time":<time>}
此函数以电影般的方式移动摄像机,参数如下:
<position> = 摄像机生成的位置。示例:0 64 0
<yaw> = 摄像机生成时的水平旋转角度,范围在 -180 到 180 之间。示例:-150
<pitch> = 摄像机生成时的垂直旋转角度,范围在 -90 到 90 之间。示例:-5
<time> = 摄像机从当前位置移动到目标位置所需的时间(以刻为单位)。示例:100
许可证
本项目遵循 GNU Lesser General Public License v2.1 开源许可协议。您可以根据 LGPL v2.1 的条款使用、修改和重新分发该软件。
本软件按“原样”提供,不提供任何形式的担保。请参阅 LICENSE 文件或 获取完整的许可文本。
Minecraft's unOfficial Data Libraries:
Creator Camera Features
This datapack adds a framework to use smooth camera features to Minecraft.
This data pack belongs to the Minecraft unOfficial Project.
Documentation
This same information can be found within the data pack itself (documentation.txt)
Instalation
- Set this pack into the /datapacks folder in your world.
- Use /reload or just join the world again.
- That's that
Functions
Here are the following functions intented to be used by the creators:
Load Camera
/function ccf:load_camera {"pos":"<position>","yaw":<yaw>,"pitch":<pitch>,"players":"<players>"}
This function load the camera, whereas:
<position> = The position where the camera will spawn. Example: 0 64 0
<yaw> = Horizontal rotation where the camera will face when spawn, between 0 to 180 with negatives. Example: -150
<pitch> = Vertical rotation where the camera will face when spawn, between 0 to 90 with negatives. Example: -5
<players> = Selected players that will be inside the camera POV. Example: @a[type=player]
Unload Camera
/function ccf:unload_camera {"gamemode":"<gamemode>"}
This function unload the camera, whereas:
<gamemode> = The gamemode that the players will be when leaving camera mode. Example: adventure
Cut
/function ccf:cut {"pos":"<position>","yaw":<yaw>,"pitch":<pitch>}
This function makes a cut the camera position, whereas:
<position> = The position where the camera will spawn. Example: 0 64 0
<yaw> = Horizontal rotation where the camera will face when spawn, between 0 to 180 with negatives. Example: -150
<pitch> = Vertical rotation where the camera will face when spawn, between 0 to 90 with negatives. Example: -5
Move
/function ccf:move {"pos":"<position>","yaw":<yaw>,"pitch":<pitch>,"time":<time>}
This function moves the camera cinematografically, whereas:
<position> = The position where the camera will spawn. Example: 0 64 0
<yaw> = Horizontal rotation where the camera will face when spawn, between 0 to 180 with negatives. Example: -150
<pitch> = Vertical rotation where the camera will face when spawn, between 0 to 90 with negatives. Example: -5
<time> = The time (in ticks) that it will take to the camera to go to the actual position to the new position. Example: 100
License
This project is licensed under the GNU Lesser General Public License v2.1. You may use, modify, and redistribute it under the terms of the LGPL v2.1.
This software is provided "as is", without warranty of any kind. See the LICENSE file or for full license text.
评论 0
登录后参与评分
还没有评论,来抢沙发吧