All Mods Resource Packs Data Packs Shaders Modpacks Plugins
C

Cutscene API

by thewinnt • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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:

  1. 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).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge, Quilt.
  3. Move the downloaded Cutscene API file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x
Fabric
last yr. 1
1.21.x
Neoforge
last yr. 1
1.21.4
Fabric
last yr. 1
1.21.4
Neoforge
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Neoforge
last yr. 1
1.20.x
Forge
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Fabric
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Neoforge
last yr. 1
1.21.x
Neoforge
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Neoforge
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Neoforge
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.1
Neoforge
last yr. 1
1.20.6
Neoforge
last yr. 1
1.20.6
Fabric
last yr. 1
1.20.6
Neoforge
last yr. 1
1.20.4
Neoforge
last yr. 1
This release backports the bugfixes from newer versions:

## 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.
This release backports the bugfixes from newer versions:

## 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.
This release brings support for Minecraft 1.21.4 with every bugfix from 1.6.4-1.6.6, more specifically:

## 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.
This release brings support for Minecraft 1.21.4 with every bugfix from 1.6.4-1.6.6, more specifically:

## 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.
This release brings support for Minecraft 1.21.3 and fixes some bugs. This version is based on 1.6.3 and reimplements the fixes from later versions.

## Bug fixes
  • Fixed some effects (especially custom ones) causing classloading errors on the dedicated server
This release brings support for Minecraft 1.21.3 and fixes some bugs. This version is based on 1.6.3 and reimplements the fixes from later versions.

## Bug fixes
  • Fixed some effects (especially custom ones) causing classloading errors on the dedicated server
This release fixes some small issues in 1.6.4.

## 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.
This release fixes some small issues in 1.6.4.

## 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.
This release brings support for Minecraft 1.20.1 as well as some minor fixes.

## Format changes
  • pitch in effect cutscenes:appearing_text now needs to have its parameters in a value field, alongside type

## Changes
  • There is no longer a message logged when a float providers fails to load
  • Added a missing Russian translation for the /cutscene command

## API changes
  • Registries in CutsceneAPI will not exist until NewRegistryEvent on Forge
  • TimeManager#setGameTickrate was removed

Cutscenes made for previous 1.20.1 releases will continue to work in this version.
This release brings support for Minecraft 1.20.1 as well as some minor fixes.

## Format changes
  • pitch in effect cutscenes:appearing_text now needs to have its parameters in a value field, alongside type

## Changes
  • There is no longer a message logged when a float providers fails to load
  • Added a missing Russian translation for the /cutscene command

## API changes
  • Registries in CutsceneAPI will not exist until NewRegistryEvent on Forge
  • TimeManager#setGameTickrate was removed

Cutscenes made for previous 1.20.1 releases will continue to work in this version.
Reverted the update checker changes as they broke version ranges in other mods.
Reverted the update checker changes as they broke version ranges in other mods.
This is a small bugfix release.

## 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 version field

This version is compatible with every 1.6.x version, including crossplay.
This is a small bugfix release.

## 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 version field

This version is compatible with every 1.6.x version, including crossplay.
This release brings small bug fixes and improvements.

## Fixes
  • Fixed CutsceneEffect#onEnd not being called when a cutscene got interrupted for any reason
  • Fixed cutscenes:appearing_text effect 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
Download Cutscene API
Select game version
Select platform