resourcepack.ai
DOCS

Official addons

Cutscenes

An addon for RP Engine: a plugin that installs into the engine and adds one thing. This one is cutscenes.

You select an area of your world with a wand and open it in a 3D editor in your browser, where it looks exactly as it does in game, your own blocks and models included. You put people, creatures, models, vehicles and cameras in it, animate them on a timeline, add transitions, subtitles, dialogs, sounds and effects, and press Send to server. Players watch through your cameras, see a figure wearing their own skin act the scene out, and nobody outside the scene sees any of it.

Installing#

It needs Spigot or Paper 1.21.4 or newer, Java 21, and RP Engine 0.2.92 or newer.

  1. 1

    Drop it in

    Put RPE-cutscenes.jar in plugins/ beside RPEngine.jar and start the server. Cutscenes copies its walk, run and gesture animations into plugins/RPEngine/content/cutscenes/ and the engine reloads once.

  2. 2

    Select an area

    As an op, run /cutscene wand. Left-click a block for one corner and right-click another for the opposite corner. The box is drawn in particles and its size shows on your action bar. A WorldEdit selection works too.

  3. 3

    Make the scene

    /cutscene create intro, then /cutscene edit intro. Click the link in chat.

  4. 4

    Play it

    Press Send to server in the editor, then /cutscene play intro.

An area is at most 128 × 96 × 128 blocks by default (area.max-size in config.yml, up to 256 × 128 × 256), because the editor draws every block of it.

The editor#

The editor shows your area in 3D, seen from outside, with everything in the scene posed at the playhead. It uses your server's own resource packs, so custom blocks and models look as they do in game. The link lasts three hours.

PartWhat it does
Library (left)Everything you can add, from what your server has: NPCs, the Viewer, custom mobs, models, vehicles, items, vanilla mobs, cameras, transitions, dialogs, HUDs, VFX, sounds, music, world changes and markers. Click to add, or drag into the world to put it where it lands
View (middle)Drag to turn, right-drag to pan, scroll to zoom. G moves the selected thing and R turns it; letting go sets a key at the playhead. C looks through the live camera, with the subtitles, titles, fades and letterbox drawn over it
Timeline (bottom)Camera cuts on top, then a row per camera and per actor with its keys and clips, then the screen and the world rows. Drag a key or a clip to retime it, drag a clip's right edge to change its length, drag the gold line to change the scene's length
Outliner and inspector (right)Every actor and camera, and every field of whatever is selected. Positions are in world coordinates, as F3 shows them

Space plays and pauses, K sets a key at the playhead, Ctrl+Z undoes, Ctrl+D duplicates and Delete deletes. The editor saves as you work, but nothing reaches your server until you press Send to server. Play on server plays the scene as it stands for you in game, without saving it.

The AI director#

Press AI in the editor's header and describe the cutscene, or what to change in it: "a villager greets the player at the door and shows them the map", "slow orbit around the king here", "write their argument as subtitles". The AI writes the scene back: who is in it and where they walk, what they do, what they say, the cameras and cuts, sounds, weather and fades. It knows your area's floors and walls and uses only what your server has, and anybody it puts in the scene is set down on the nearest real floor. The change is one step, so Ctrl+Z takes it back.

The AI runs on your ResourcePack AI account, not on the server: sign in to Studio in the same browser (the editor offers the button) and it uses your AI Credits. A request costs what it uses, about 35 credits for most and never more than 100, and failed ones are given back. The same account can draw an NPC a new skin from a description (Make a skin with AI, under the NPC's skin), which is also kept in your Skins.

Cameras#

ToolWhat it does
Fly (P)Moves the selected camera by hand, seen through it: WASD across, E and Q up and down, drag to look, Shift to go faster, the wheel to change speed. K keys the view at the playhead, and R records while the scene plays (a key every quarter second, as one step you can undo). Esc lands
Camera move (in the camera's inspector)Orbit, dolly in or out, crane up or down, pan, truck, or rise and reveal, about an actor (followed as it moves) or what the camera looks at, for as long as you say, eased in and out, from the playhead
Points atKeeps an actor in frame, or follows it from an offset. Lag trails behind it, which makes a follow feel handheld
Blend (on a camera cut)Glides from the camera before into this one instead of cutting
Live camera (corner)While you orbit, the shot the viewer sees, in the corner of the view

Each key also has an ease, from Linear to Smoother (cinematic).

What goes in a scene#

ThingIn game
NPCA player figure with any skin: a username, an uploaded skin or one the AI draws. It walks and runs on its own as it moves along its path (with Match its stride its legs keep pace with how fast it goes), can turn to face the way it walks, plays any emote, holds items, rides vehicles, turns its head toward an actor or a camera, and you can pose it bone by bone. Standing still it can sit, sneak, lie down or loop an emote of your choice
ViewerThe same, wearing the skin of whoever is watching. This is how a player sees themselves in the scene. It can hold what the viewer is holding, and can be played by a stand-in skin when fewer people watch than the scene has Viewers
Custom mob, model, vehicle, itemYour RP Engine content, moved along its path, playing its own animations, with a resting loop when no clip plays
Vanilla mobA real mob with its AI off. It walks because it moves, and can swing and flinch. It can be a baby, take any look the game has (a cat's coat, a villager's job, a sheep's colour, a slime's size), wear armour and hold items, sit or sleep, burn, be invisible, and make its own sounds
CameraA path with its own easing, a target to look at or follow, a zoom and a shake. Cut between cameras on the camera row
ScreenTransitions, subtitles (letter by letter, with a voice sound), titles, fades, a letterbox, HUDs, and dialogs that can pause the scene
WorldSounds, music, VFX, particles, block changes the viewers see, the time of day and weather they see, console commands, and events for other plugins

Everything a scene spawns is seen only by its viewers, unless you set an actor to Everyone nearby. While a scene plays, its viewers are hidden from everybody else and, with Hide other players, see nobody else themselves.

Playing a scene#

/cutscene play intro                     for yourself
/cutscene play intro Steve,Alex          for them, together
/cutscene play intro @a                  for everybody online
/cutscene play intro radius:10           for everybody within 10 blocks of you
/cutscene stop [player|all]              take somebody out of a scene
/cutscene skip                           leave the scene you are watching

Viewers become spectators looking through the scene's camera and are put back exactly as they were when it ends: where they stood, their game mode, flight, health, food, effects and held slot. That is written to disk before anything changes, so a viewer is put back even if the server stops mid-scene. Holding sneak for a second skips a scene that allows it.

A scene can also start on its own: when a player walks into a box, when a player joins, or when a player right-clicks an entity tagged cutscene:<scene id>. Each can fire once per player, for that player alone or for everybody near them, and can need a permission.

Choices#

A dialog can pause the scene until the viewer answers. Give its buttons the command /cutscene jump <marker>, with a marker you set on the timeline, and the scene carries on from that marker. That is how a choice branches a scene.

Permissions#

NodeDefaultWhat
cutscenes.adminopEverything below
cutscenes.playereverybodycutscenes.skip and cutscenes.jump
cutscenes.wand, cutscenes.pos1, cutscenes.pos2opSelecting an area
cutscenes.create, cutscenes.delete, cutscenes.resizeopMaking and changing scenes
cutscenes.list, cutscenes.info, cutscenes.areaopLooking at scenes
cutscenes.editopOpening the editor
cutscenes.play, cutscenes.play.othersopPlaying a scene for yourself, or for others
cutscenes.stop, cutscenes.stop.othersopStopping your own scene, or somebody else's
cutscenes.reloadopRe-reading config.yml and every scene

What it cannot do#

  • The field of view cannot be set from a server, so a zoom moves the camera forward instead.
  • There is no camera roll. A spectator's view only turns and tilts.
  • A vanilla mob cannot be posed bone by bone. Use a custom mob or a model for that.
  • An NPC cannot wear armour or be made invisible yet: it shows what it holds. A vanilla mob can do both.
  • The editor's lighting is approximate. It shades blocks by the way they face; Play on server shows the real thing.
  • Blocks the game draws in code (chests, signs, beds, banners, heads) are boxes in the editor.
  • Bedrock players (Geyser) are untested, and Folia is not supported yet.
  • A new NPC skin is added to RP Engine's rigs pack, which sends every player the pack again. It waits until no scene is playing.

For plugin developers, the addon has an API: play a scene, seek, jump to a marker, and events for start, end, markers and custom events.