mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-26 21:03:45 +01:00
Use dungeons flag in mg_dungeons for MCL2 dungeons
parent
44dc28d522
commit
d0678d33f8
@ -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_min = mcl_vars.mg_end_max - 11
|
||||
|
||||
-- Use MineClone 2-style dungeons
|
||||
mcl_vars.mg_dungeons = true
|
||||
|
||||
-- Set default stack sizes
|
||||
minetest.nodedef_default.stack_max = 64
|
||||
minetest.craftitemdef_default.stack_max = 64
|
||||
|
@ -3,4 +3,5 @@ mcl_core
|
||||
mcl_chests
|
||||
mcl_mobs
|
||||
mcl_mobspawners
|
||||
mcl_mapgen_core
|
||||
mobs_mc
|
||||
|
@ -3,6 +3,11 @@
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
local pr = PseudoRandom(os.time())
|
||||
|
||||
-- Are dungeons disabled?
|
||||
if mcl_vars.mg_dungeons == false then
|
||||
return
|
||||
end
|
||||
|
||||
-- Get loot for dungeon chests
|
||||
local get_loot = function()
|
||||
local loottable = {
|
||||
|
@ -1078,6 +1078,10 @@ local function register_mgv6_decorations()
|
||||
end
|
||||
|
||||
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
|
||||
mg_flags.dungeons = false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user