fix settingtypes in music_dfcaverns and related bug. add nether music.

master
MeseCraft 2020-12-25 16:51:10 -06:00
parent a24de79f1f
commit 8cda8f0f1e
11 changed files with 126 additions and 71 deletions

View File

@ -63,7 +63,7 @@ hudbars_bar_type = progress_bar
# nether
nether_depth_ymax=-17000
nether_depth_ymin = -30000
nether_depth_ymin=-31000
# mobs_redo
mobs_spawn_protected=false
@ -79,7 +79,8 @@ music_dfcaverns_underground2_ymax = -3553
music_dfcaverns_underground2_ymin=-6512
music_dfcaverns_underground3_ymax=-6513
music_dfcaverns_underground3_ymin=-12052
music_nether_ymax=-17000
music_nether_ymin=-31000
# protector_redo
protector_flip=true

View File

@ -1,5 +1,5 @@
local ymax = tonumber(minetest.settings:get("music_default_underground1_ymax")) or -800
local ymin = tonumber(minetest.settings:get("music_default_underground1_ymin")) or -1400
local ymax = tonumber(minetest.settings:get("music_dfcaverns_underground2_ymax")) or -800
local ymin = tonumber(minetest.settings:get("music_dfcaverns_underground2_ymin")) or -1400
music_api.register_track({
name = "fairytale_waltz",

View File

@ -1,5 +1,5 @@
local ymax = tonumber(minetest.settings:get("music_default_underground1_ymax")) or -1400
local ymin = tonumber(minetest.settings:get("music_default_underground1_ymin")) or -31000
local ymax = tonumber(minetest.settings:get("music_dfcaverns_underground3_ymax")) or -1400
local ymin = tonumber(minetest.settings:get("music_dfcaverns_underground3_ymin")) or -31000
music_api.register_track({
name = "crypto",

View File

@ -0,0 +1,2 @@
local path = minetest.get_modpath("music_nether")
dofile(path .. "/nether.lua")

View File

@ -0,0 +1,5 @@
name = music_nether
description =Part of music_modpack, additional pack of underground music with height zones corresponding to nether layer.
author = MeseCraft
depends = music_api
optional_depends = nether

View File

@ -0,0 +1,42 @@
local ymax = tonumber(minetest.settings:get("music_nether_ymax")) or -17000
local ymin = tonumber(minetest.settings:get("music_nether_ymin")) or -31000
music_api.register_track({
name = "nether1",
length = 185,
gain = 1,
day = true,
night = true,
ymin = ymin,
ymax = ymax,
})
music_api.register_track({
name = "nether2",
length = 138,
gain = 1,
day = true,
night = true,
ymin = ymin,
ymax = ymax,
})
music_api.register_track({
name = "nether3",
length = 177,
gain = 1,
day = true,
night = true,
ymin = ymin,
ymax = ymax,
})
music_api.register_track({
name = "nether4",
length = 205,
gain = 1,
day = true,
night = true,
ymin = ymin,
ymax = ymax,
})

View File

@ -0,0 +1,5 @@
#Nether maximum height
music_nether_ymax (Maximum height for nether) int -17000
#Nether minimum height
music_nether_ymin (Minimum height for nether) int -31000

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.