Cutscene API is a mod that allows you to make cutscenes with camera movement and optional effects, and play them in-game in real time. It is intended to be used by map and mod makers to make their projects more beautiful.
Feature overview
The thing that defines what a player sees is a cutscene type, or simply a cutscene, defined in a data pack. Cutscenes have a length (in ticks), a path for the camera, a list of actions that a player is allowed to do when watching a cutscene, a start and end transition, as well as some special effects. All of these are optional, but when combined, they allow for making beautiful cutscenes.
You can find more details in the spoiler boxes below:
Path
The player's camera may follow a certain path during a cutscene. This path is defined by a set of segments, each of which can be either a simple line, a Bézier curve, a Catmull-Rom spline, a static point, or a special point, whose coordinates are defined by math functions.The camera's rotation is defined using the same kinds of segments, as well as a special one that lets you look at a specific point from where you are.
Transitions
The player doesn't have to snap into a cutscene - you can specify a transition to make it look more beautiful. Currently implemented transitions are "smooth ease" that makes you smoothly enter or leave the path of a cutscene and "fade", which fades the screen to a color (not necessarily one, or constant) and then starts or ends the cutscene.Action toggles
During a cutscene, you can prevent the player from moving, turning their head, breaking blocks, using items, taking damage, or make them a spectator so that mobs don't target them. This is a bit unstable at the time.Effects
Besides a camera path, you may want the player to see some text or images in a cutscene. Effects allow you to do that. Currently implemented effects include "appearing text" that slowly appears over time, "triangle strip" that can be used to draw simple geometry with triangles, "rectangle" that draws a rectangle, as well as "texture blit", which draws a texture on a specified position.Commands
/cutscene start <player> <type> [at_preview | position] [start_camera_rotation] [path_rotation] - starts a cutscene at the specified position, with the camera initially facing start_camera_rotation and the path rotated by path_rotation around the starting position
/cutscene stop [player] - stops a cutscene for a player
/cutscene preview set <type> [start_pos] [path_rotation] - previews a cutscene path from a certain point, rotated around that point
/cutscene preview hide - hides a preview
See it yourself
In the source repository, there is folder named "Example Cutscenes", which is a datapack with a bunch of cutscenes I use for testing out new features and that you can use to see what the mod has to offer. They're a little weird sometimes, but they get the job done.
Compatibility
I try to make the mod as compatible with other mods out there as possible. There should be no problems.
Most versions I release are typically backwards-compatible, especially format-wise.
How to Install Cutscene API (Mod)
Cutscene API by thewinnt is verified for Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.20, 1.20.1, 1.20.4, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3 (latest release: mc1.21.1-fabric-1.6.6, file size: 274 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20, 1.20.1, 1.20.4, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3) and platform (Fabric, Forge, Neoforge, Quilt).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge, Quilt.
- Move the downloaded Cutscene API file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 |
## Bug fixes
- Fixed some effects (especially custom ones) causing classloading errors on the dedicated server
- The camera entity no longer renders (I think that's what caused it to appear after a cutscene sometimes)
- Fixed the "Error loading float provider" spam
As always, all cutscenes made for previous versions should work with this one.
## Bug fixes
- Fixed some effects (especially custom ones) causing classloading errors on the dedicated server
- The camera entity no longer renders (I think that's what caused it to appear after a cutscene sometimes)
- Fixed the "Error loading float provider" spam
As always, all cutscenes made for previous versions should work with this one.
## Bug fixes
- Fixed some effects (especially custom ones) causing classloading errors on the dedicated server
- The camera entity no longer renders (I think that's what caused it to appear after a cutscene sometimes)
- Fixed the "Error loading float provider" spam
## Compatibility
Any cutscenes made for previous versions should still work in this one. From now on, this will be the main version for development, and 1.21.1 may get some big releases once in a wihle.
## Bug fixes
- Fixed some effects (especially custom ones) causing classloading errors on the dedicated server
- The camera entity no longer renders (I think that's what caused it to appear after a cutscene sometimes)
- Fixed the "Error loading float provider" spam
## Compatibility
Any cutscenes made for previous versions should still work in this one. From now on, this will be the main version for development, and 1.21.1 may get some big releases once in a wihle.
## Bug fixes
- Fixed some effects (especially custom ones) causing classloading errors on the dedicated server
## Bug fixes
- Fixed some effects (especially custom ones) causing classloading errors on the dedicated server
## Fixes
- Fixed the camera being visible when starting a cutscene in third person
- Added support for 1.20
- Built mod jars now have correct names
This version is fully compatible with 1.6.4, including crossplay.
## Fixes
- Fixed the camera being visible when starting a cutscene in third person
- Added support for 1.20
- Built mod jars now have correct names
This version is fully compatible with 1.6.4, including crossplay.
## Format changes
pitchin effectcutscenes:appearing_textnow needs to have its parameters in avaluefield, alongsidetype
## Changes
- There is no longer a message logged when a float providers fails to load
- Added a missing Russian translation for the
/cutscenecommand
## API changes
- Registries in
CutsceneAPIwill not exist untilNewRegistryEventon Forge TimeManager#setGameTickratewas removed
Cutscenes made for previous 1.20.1 releases will continue to work in this version.
## Format changes
pitchin effectcutscenes:appearing_textnow needs to have its parameters in avaluefield, alongsidetype
## Changes
- There is no longer a message logged when a float providers fails to load
- Added a missing Russian translation for the
/cutscenecommand
## API changes
- Registries in
CutsceneAPIwill not exist untilNewRegistryEventon Forge TimeManager#setGameTickratewas removed
Cutscenes made for previous 1.20.1 releases will continue to work in this version.
## Bug fixes
- Fixed overlays not being ordered correctly, causing some to always render on top of others
- Fixed unknown easing types being silently loaded as
linear - Fixed unknown transition and delay provider types being silently loaded as defaults
## Other changes
- Added the update checker URL on NeoForge
- As a side effect, the displayed mod version is now in a different format
- Added the Modrinth link on Fabric
- The game now logs a message when loading cutscenes without the
versionfield
This version is compatible with every 1.6.x version, including crossplay.
## Bug fixes
- Fixed overlays not being ordered correctly, causing some to always render on top of others
- Fixed unknown easing types being silently loaded as
linear - Fixed unknown transition and delay provider types being silently loaded as defaults
## Other changes
- Added the update checker URL on NeoForge
- As a side effect, the displayed mod version is now in a different format
- Added the Modrinth link on Fabric
- The game now logs a message when loading cutscenes without the
versionfield
This version is compatible with every 1.6.x version, including crossplay.
## Fixes
- Fixed
CutsceneEffect#onEndnot being called when a cutscene got interrupted for any reason - Fixed
cutscenes:appearing_texteffect updating too slow when the cutscene length was defined in seconds - Minor improvements to overlay rendering during game pause
## Compatibility
This version is fully compatible with 1.6, including crossplay.
EDIT 28.11.2024: Reuploaded the NeoForge version as it didn't work