跳到正文

Creator Camera Features

作者:Holazas

Data library for smooth, in game camera features. (movements, cuts)

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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

  1. Set this pack into the /datapacks folder in your world.
  2. Use /reload or just join the world again.
  3. 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 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt for full license text.

常见问题

Creator Camera Features 支持哪些 Minecraft 版本?

Creator Camera Features 支持 Minecraft Java 版 26.1–26.1.2,共 3 个版本。下载时注意选择和你游戏版本一致的文件。

Creator Camera Features 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Holazas 的其他作品

查看全部 →