1
0
Fork 0

Changed main menu music and some small chages in mcl_music

This commit is contained in:
docnite 2024-11-17 20:53:25 +03:00
parent 4dc5d0939c
commit 1aa0d716f5
4 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
title = VoxeLibre title = TheDarkProject
description = A survival sandbox game. Survive, gather, hunt, build, explore, and do much more. description = A survival sandbox game. Survive, gather, hunt, build, explore, and do much more.
disallowed_mapgens = v6 disallowed_mapgens = v6
version=0.88.0-SNAPSHOT version=0.88.0-SNAPSHOT

Binary file not shown.

View File

@ -18,7 +18,9 @@ local valley_of_ghosts = "exhale_and_tim_unwin-valley_of_ghosts"
local farmer = "exhale_and_tim_unwin-farmer" local farmer = "exhale_and_tim_unwin-farmer"
local dimension_to_base_track = { local dimension_to_base_track = {
["overworld"] = {pianowtune, never_grow_up, flock_of_one, gift, hailing_forest, lonely_blossom, farmer}, ["overworld"] = {
"Fief-Soul_of_a_Nameless_Bard"
},
["nether"] = {nether_tune, valley_of_ghosts}, ["nether"] = {nether_tune, valley_of_ghosts},
["end"] = {end_tune}, ["end"] = {end_tune},
["mining"] = {odd_block}, ["mining"] = {odd_block},
@ -132,6 +134,7 @@ local function play()
local track = pick_track(dimension, underground) local track = pick_track(dimension, underground)
if track then if track then
play_song(track, player_name, dimension, day_count) play_song(track, player_name, dimension, day_count)
minetest.log("action", "[mcl_music] Play song '" .. track .. "' for player: " .. player_name)
else else
--minetest.log("no track found. weird") --minetest.log("no track found. weird")
end end
@ -215,8 +218,8 @@ minetest.register_chatcommand("music", {
meta:set_int("mcl_music:disable", 1) meta:set_int("mcl_music:disable", 1)
display_new_state = S("off") display_new_state = S("off")
end end
stop_music_for_listener_name(playername) stop_music_for_listener_name(playername)
minetest.chat_send_player(sender_name, S("Set music for @1 to: @2", playername, display_new_state)) minetest.chat_send_player(sender_name, S("Set music for @1 to: @2", playername, display_new_state))
end, end,
}) })