HomeJavaModsCutscene API
ModsJava

Cutscene API

by thewinnt · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.4 · Fabric⬇ Download for 1.21.2–1.21.3 · Fabric⬇ Download for 1.21–1.21.1 · Fabric⬇ Download for 1.20.6 · Fabric⬇ Download for 1.20–1.20.1 · Fabric⬇ Download for 1.21.4 · NeoForge⬇ Download for 1.21.2–1.21.3 · NeoForge⬇ Download for 1.21–1.21.1 · NeoForge⬇ Download for 1.20.6 · NeoForge⬇ Download for 1.20.4 · NeoForge⬇ Download for 1.21–1.21.1 · Quilt⬇ Download for 1.20–1.20.1 · Quilt⬇ Download for 1.20–1.20.1 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Cutscene API — screenshot 1

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.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more