Momento
Momento is a powerful tool for content creators that allows adding audio recordings with subtitles to the game. Simply use a special item or the /dialogue command to play voice acting with synchronized text prompts.
How to Use
To create a dialogue system, you'll need two main components:
- A
.srtfile with text subtitles - A
.jsonfile for configuring appearance and audio
All configuration files are stored client-side and can be placed in a resource pack.
Important: although dialogue files are client-side, the mod itself must be installed on both client and server!
Subtitle Files (.srt)
Creating .srt files is a simple process. You can use various programs to record audio and create subtitles simultaneously.
In the resource pack, .srt files should be located at: /assets/{id}/momento/srt/{lang}
Momento supports multilingual subtitles! Replace
{lang}with the language identifier, for exampleru_rufor Russian.
Dialogue Files
[dialogue_name].json files are placed in /assets/{modid}/momento/dialogue
The minimum configuration includes name, reference to sound file, volume, and reference to subtitle file:
{
"name": "Demonstration - by CodexAdrian",
"sound": "momento:demo",
"volume": 1,
"srt": "momento:demo"
}
The sound reference can be more complex, for example:
example:example.dialogues.dialogue_intro. This depends on how you named the sound in the sounds.json file.
Additional Settings
Name
The dialogue name uses the standard Minecraft text component format, allowing customization similar to command titles.
Icon
You can choose the item appearance from five built-in options:
"BRASS_TAPE_RECORDER""HAND_HELD_SPEAKER""TEAL_PHONOGRAPH""WOODEN_RADIO""PURPLE_PHONOGRAPH"
By default, "BRASS_TAPE_RECORDER" is used.
Display
Two types of subtitle display are available:
Canvas
Standard display with colored background. Settings include color, transparency, width, and padding.
Texture
A more complex option using textures. Consists of three parts: top, middle (repeatable), and bottom. Allows creating unique text window designs.