diff --git a/mods/default/init.lua b/mods/default/init.lua index e7a5660..179c16f 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -38,6 +38,7 @@ default.gui_suvival_form = "size[8,10]".. default.gui_bg_img.. default.gui_slots.. "button_exit[-0.1,-0.3;3,1;gotostart;"..minetest.formspec_escape(S("Back to start")).."]".. + "button[-0.1,0.7;3,1;togglemusic;"..minetest.formspec_escape(S("Toggle music")).."]".. "label[0,3.75;"..minetest.formspec_escape(S("Player inventory:")).."]".. "list[current_player;main;0,4.25;8,1;]".. "list[current_player;main;0,5.5;8,3;8]".. diff --git a/mods/default/locale/de.txt b/mods/default/locale/de.txt index 70c9771..e8a9319 100644 --- a/mods/default/locale/de.txt +++ b/mods/default/locale/de.txt @@ -49,6 +49,7 @@ Player inventory: = Spielerinventar: This furnace is active and constantly burning its fuel. = Der Ofen ist aktiv und verbrennt beständig seinen Brennstoff. This furnace is inactive. Please read the sign above. = Der Ofen ist inaktiv. Bitte lesen Sie das obige Schild. Back to start = Zurück zum Anfang +Toggle music = Musik umschalten Crafting grid: = Fertigungsgitter: Output slot: = Resultat: diff --git a/mods/default/locale/el.txt b/mods/default/locale/el.txt index 39c02c8..9eb468b 100644 --- a/mods/default/locale/el.txt +++ b/mods/default/locale/el.txt @@ -50,6 +50,7 @@ Player inventory: = Αντικείμενα παίχτη This furnace is active and constantly burning its fuel. = Αυτός ο φούρνος είναι ανοιχτός και καει συνεχώς το καύσιμο. This furnace is inactive. Read the instructions to learn how to activate it. = Αυτός ο φούρνος είναι σβηστός. Διάβασε τις οδηγίες για να μάθεις πως να τον ανοίξεις. Back to start = Πίσω στην αρχή +#Toggle music = Crafting grid: = Τετραγωνα κατασκευών Output slot: = τετράγωνο εξόδου diff --git a/mods/default/locale/es.txt b/mods/default/locale/es.txt index 9d265d4..ec9045b 100644 --- a/mods/default/locale/es.txt +++ b/mods/default/locale/es.txt @@ -49,6 +49,7 @@ Player inventory: = inventario del jugador: This furnace is active and constantly burning its fuel. = Este horno está encendido y quemando su combustible constantemente. This furnace is inactive. Read the instructions to learn how to activate it. = Este horno está apagado. Lee las instrucciones para aprender a encenderlo. Back to start = Volver al principio +#Toggle music = Crafting grid: = cuadrícula de manufactura: Output slot: = hueco de productos: diff --git a/mods/default/locale/fr.txt b/mods/default/locale/fr.txt index 36e77b9..c919a08 100644 --- a/mods/default/locale/fr.txt +++ b/mods/default/locale/fr.txt @@ -50,6 +50,7 @@ Player inventory: = Inventaire du joueur : This furnace is active and constantly burning its fuel. = Ce four est actif et brûle constamment son carburant. This furnace is inactive. Read the instructions to learn how to activate it. = Ce four est inactif. Lisez les instructions pour savoir comment l'activer. Back to start = Revenir au début +#Toggle music = Crafting grid: = Grille de fabrication : Output slot: = Production : diff --git a/mods/default/locale/id.txt b/mods/default/locale/id.txt index ace49b4..e593cfe 100644 --- a/mods/default/locale/id.txt +++ b/mods/default/locale/id.txt @@ -50,6 +50,7 @@ Player inventory: = Inventaris pemain: This furnace is active and constantly burning its fuel. = Tungku ini nyala dan secara konstan membakar bahan bakarnya. This furnace is inactive. Read the instructions to learn how to activate it. = Tungku ini mati. Baca instruksi untuk mempelajari cara menyalakannya. Back to start = Ke awal +#Toggle music = Crafting grid: = Papan kerajinan: Output slot: = Hasil: diff --git a/mods/default/locale/it.txt b/mods/default/locale/it.txt index ffcd6be..4dc7fbe 100644 --- a/mods/default/locale/it.txt +++ b/mods/default/locale/it.txt @@ -50,6 +50,7 @@ Player inventory: = Inventario giocatore: This furnace is active and constantly burning its fuel. = Questa fornace è attiva e sta bruciando il combustibile. This furnace is inactive. Please read the sign above. = Questa fornace è inattiva. Leggere il cartello. Back to start = Da capo +#Toggle music = Crafting grid: = Griglia di fabbricazione: Output slot: = Prodotto: diff --git a/mods/default/locale/nl.txt b/mods/default/locale/nl.txt index 622fc29..0989be0 100644 --- a/mods/default/locale/nl.txt +++ b/mods/default/locale/nl.txt @@ -49,6 +49,7 @@ Player inventory: = Bezittingen: This furnace is active and constantly burning its fuel. = De oven is actief en verbrandt voortdurend brandstof. This furnace is inactive. Read the instructions to learn how to activate it. = Deze oven is niet actief. Lees de aanwijzingen en leer hoe de oven aangezet wordt. Back to start = Terug +#Toggle music = Crafting grid: = Crafting raster: Output slot: = Resultaat: diff --git a/mods/default/locale/template.txt b/mods/default/locale/template.txt index 391576d..602d4f2 100644 --- a/mods/default/locale/template.txt +++ b/mods/default/locale/template.txt @@ -50,6 +50,7 @@ Player inventory: This furnace is active and constantly burning its fuel. This furnace is inactive. Please read the sign above. Back to start +Toggle music Crafting grid: Output slot: diff --git a/mods/mpd/init.lua b/mods/mpd/init.lua index deee0f7..6526be5 100644 --- a/mods/mpd/init.lua +++ b/mods/mpd/init.lua @@ -197,3 +197,14 @@ minetest.register_chatcommand("mvolume", { end end, }) + +minetest.register_on_player_receive_fields(function(player, formname, fields) + if(fields.togglemusic) then + if mpd.playing then + mpd.stop_song() + else + mpd.next_song() + end + end +end) + diff --git a/mods/mpd/readme.txt b/mods/mpd/readme.txt index 82197cf..4dc40c3 100644 --- a/mods/mpd/readme.txt +++ b/mods/mpd/readme.txt @@ -1,6 +1,8 @@ ### mpd Mod for Minetest (c) 2017 orwell96 +Slightly modified for the Tutorial. + This mod is licensed under the MIT License. Adds an easy but powerful background music backend.