mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Use dungeons flag in mg_dungeons for MCL2 dungeons
This commit is contained in:
parent
44dc28d522
commit
d0678d33f8
4 changed files with 13 additions and 0 deletions
|
@ -98,6 +98,9 @@ mcl_vars.mg_end_platform_pos = { x = 100, y = mcl_vars.mg_end_min + 74, z = 0 }
|
||||||
mcl_vars.mg_realm_barrier_overworld_end_max = mcl_vars.mg_end_max
|
mcl_vars.mg_realm_barrier_overworld_end_max = mcl_vars.mg_end_max
|
||||||
mcl_vars.mg_realm_barrier_overworld_end_min = mcl_vars.mg_end_max - 11
|
mcl_vars.mg_realm_barrier_overworld_end_min = mcl_vars.mg_end_max - 11
|
||||||
|
|
||||||
|
-- Use MineClone 2-style dungeons
|
||||||
|
mcl_vars.mg_dungeons = true
|
||||||
|
|
||||||
-- Set default stack sizes
|
-- Set default stack sizes
|
||||||
minetest.nodedef_default.stack_max = 64
|
minetest.nodedef_default.stack_max = 64
|
||||||
minetest.craftitemdef_default.stack_max = 64
|
minetest.craftitemdef_default.stack_max = 64
|
||||||
|
|
|
@ -3,4 +3,5 @@ mcl_core
|
||||||
mcl_chests
|
mcl_chests
|
||||||
mcl_mobs
|
mcl_mobs
|
||||||
mcl_mobspawners
|
mcl_mobspawners
|
||||||
|
mcl_mapgen_core
|
||||||
mobs_mc
|
mobs_mc
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||||
local pr = PseudoRandom(os.time())
|
local pr = PseudoRandom(os.time())
|
||||||
|
|
||||||
|
-- Are dungeons disabled?
|
||||||
|
if mcl_vars.mg_dungeons == false then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- Get loot for dungeon chests
|
-- Get loot for dungeon chests
|
||||||
local get_loot = function()
|
local get_loot = function()
|
||||||
local loottable = {
|
local loottable = {
|
||||||
|
|
|
@ -1078,6 +1078,10 @@ local function register_mgv6_decorations()
|
||||||
end
|
end
|
||||||
|
|
||||||
local mg_flags = minetest.settings:get_flags("mg_flags")
|
local mg_flags = minetest.settings:get_flags("mg_flags")
|
||||||
|
|
||||||
|
-- Inform other mods of dungeon setting for MCL2-style dungeons
|
||||||
|
mcl_vars.mg_dungeons = mg_flags.dungeons and not superflat
|
||||||
|
|
||||||
-- Disable builtin dungeons, we provide our own dungeons
|
-- Disable builtin dungeons, we provide our own dungeons
|
||||||
mg_flags.dungeons = false
|
mg_flags.dungeons = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue