SilverSandstone/subtitles
1
1
Fork
You've already forked subtitles
1
Adds on-screen subtitles for sounds effects in Luanti. https://content.luanti.org/packages/SilverSandstone/subtitles/
  • Lua 99.3%
  • Shell 0.7%
Umeaman 0485795cbe
Translated using Weblate (Swedish)
Currently translated at 12.3% (147 of 1193 strings)
Translation: Subtitles for Luanti/Subtitles
Translate-URL: https://translate.codeberg.org/projects/minetest-subtitles/subtitles/sv/ 
2026年06月08日 23:07:49 +00:00
locale Translated using Weblate (Swedish) 2026年06月08日 23:07:49 +00:00
textures Initial commit 2024年05月24日 11:16:56 +12:00
.gitattributes Exclude project files from distribution archives 2024年09月18日 16:09:35 +12:00
.gitignore Initial commit 2024年05月24日 11:16:56 +12:00
Agent.lua Update copyright 2025年03月16日 00:17:53 +13:00
api.lua Take tool capabilities into account when determining node dig sounds 2025年08月25日 22:20:01 +12:00
BaseTextSubtitleDisplay.lua Update copyright 2025年03月16日 00:17:53 +13:00
CHANGELOG.md Release 0.4.1 2024年05月28日 17:12:26 +12:00
chatcommands.lua Update copyright 2025年03月16日 00:17:53 +13:00
ChatSubtitleDisplay.lua Use a better title for ChatSubtitleDisplay 2025年03月17日 23:36:28 +13:00
classic.lua Initial commit 2024年05月24日 11:16:56 +12:00
ClassicSubtitleDisplay.lua Update copyright 2025年03月16日 00:17:53 +13:00
CornerSubtitleDisplay.lua Update copyright 2025年03月16日 00:17:53 +13:00
descriptions.lua Add more descriptions for Lazarr! 2025年08月25日 22:20:01 +12:00
find-missing.sh Initial commit 2024年05月24日 11:16:56 +12:00
init.lua Update copyright 2025年03月16日 00:17:53 +13:00
LICENCE.md Add Umeaman to translation credits 2025年03月18日 00:02:40 +13:00
listeners.lua Take tool capabilities into account when determining node dig sounds 2025年08月25日 22:20:01 +12:00
menu.lua Update copyright 2025年03月16日 00:17:53 +13:00
mod.conf Add descriptions for Backrooms Test 2025年06月20日 17:57:19 +12:00
README.md Add descriptions for Backrooms Test 2025年06月20日 17:57:19 +12:00
screenshot.png Reduce screenshot size from 3840x2160 to 1620x1080 2024年08月02日 20:58:36 +12:00
settingtypes.txt Initial commit 2024年05月24日 11:16:56 +12:00
Sound.lua Update copyright 2025年03月16日 00:17:53 +13:00
SubtitleDisplay.lua Update copyright 2025年03月16日 00:17:53 +13:00
util.lua Take tool capabilities into account when determining node dig sounds 2025年08月25日 22:20:01 +12:00
WaypointSubtitleDisplay.lua Update copyright 2025年03月16日 00:17:53 +13:00

Subtitles

ContentDB · Codeberg

This Luanti mod adds on-screen subtitles for sound effects.

Subtitles can be toggled and configured for each player. You can access the subtitles menu by clicking the Subtitles icon button in the inventory or by typing /subtitles in chat.

Subtitles are disabled by default on multiplayer.

Features

  • Descriptions for over 1,500 sound effects.
  • Multiple styles of subtitles.
  • Direction indicators for positional sounds.
  • Separate preferences for each player.
  • UI integration for supported inventories.
  • A simple API for adding subtitles to your own game or mod.

Supported Games and Mods

Descriptions are provided for these games:

  • Alter
  • Backrooms Test
  • Builda City
  • Eyeballs
  • Glitch
  • Jail Escape
  • Klots
  • Lazarr!
  • Mineclonia
  • Minetest Game
  • Moontest
  • NodeCore
  • Repixture
  • Shadow Forest
  • Subway Miner
  • Super Sam
  • The Unexpected Gambit
  • VoxeLibre

Descriptions are provided for these mods:

  • Advanced Trains
    • Basic Trains
    • DlxTrains
    • Freight Train
    • Japanese Tram TLR0600
    • JR E231
    • More Trains
    • Neat Trains
  • Ambience
  • Anvil
  • APercy's aeroplanes
    • Demoiselle
    • Ju52
    • PA28
    • Super Cub
    • Super Duck Hydroplane
    • Ultralight Trike
  • Arena_Lib
  • Automobiles Pack
  • Awards
  • Bedrock
  • Bees
  • Bell
  • Bows
  • BWeapons Modpack
  • Castle Weapons
  • Creatura
    • Animalia
  • Death Compass
  • DFCaverns
  • Digtron
  • Documentation System
  • Draconis
  • CCompass
  • Enderpearl
  • Ethereal
  • Everness
  • Fishing!
  • Gunslinger
  • Home Decor
  • Hudbars
  • i3
  • Mesebox
  • Mesecons
  • Mese Portals
  • MineClone 2 C418 Records
  • Minetest Game Plus
  • Mobs
    • Mobs Animal
    • Mobs Monster
    • Mobs Creature
    • Mobs Skeleton
    • Mobs MC
    • Mob Horse
    • Extra Mobs
    • Slimes Redo
  • Nether
  • New Fireworks
  • NextGen Bows
  • Pedology
  • Pride Flags
  • Pyramids
  • Radiant Damage
  • Real Torch
  • Regional Weather
  • Ropes
  • Scythes and Sickles
  • Shifter Tool
  • Sounds
  • Spyglass
  • Stamina
  • Steampunk Blimp
  • Storage Drawers
  • Torch Bomb
  • TPH's Spyglass
  • Travelnet
  • Unified Inventory
  • Vacuum
  • Vehicles
  • Weather
  • X Clay
  • X Enchanting

UI integration is provided for these games and mods:

  • Simple Fast Inventory (via SFInv Buttons)
  • Unified Inventory
  • i3
  • Repixture

Supporting Subtitles in Your Mod

Registration API

You can register a description to be used whenever a particular sound is played using the subtitles.register_description function:

subtitles.register_description('default_dig_metal', S'Metal clangs');

Extended Sound Parameters

You can specify a description by setting description or subtitle in either the sound spec or the parameters when playing a sound:

core.sound_play('default_dig_metal', {gain = 0.5, description = S'Metal clangs'});
core.sound_play({name = 'default_dig_metal', description = S'Metal clangs'}, {gain = 0.5});

This also works in node definitions:

core.register_node('foomod:foobarium',
{
	description = S'Foobarium';
	sounds =
	{
	 dig = {name = 'default_dig_metal', description = S'Foobarium breaks'};
	 footstep = {name = 'default_dig_metal', description = S'Footsteps on foobarium'};
	};
});

You can specify how long to display the subtitle by setting duration on either the spec or the parameters:

core.sound_play('default_dig_cracky', {duration = 2.5});

You can disable the subtitle for a sound by setting no_subtitle = true on the spec or parameters, or by setting the description to an empty string:

core.sound_play('foomod_music_1', {no_subtitle = true});
core.sound_play('foomod_music_2', {description = ''});

Licence

Subtitles by Silver Sandstone is licensed under the MIT licence, with assets under CC0.

See LICENCE.md for more information.