
Creator Camera Features
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
- 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 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt for full license text.
