From f7d9844d5455a946eef74db66e21705cd7363ba8 Mon Sep 17 00:00:00 2001 From: N-Nachtigal Date: Thu, 22 May 2025 01:05:01 +0200 Subject: [PATCH] =?UTF-8?q?Tiefen=20und=20H=C3=B6hen=20der=20Mods/Biome=20?= =?UTF-8?q?angepasst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods/cloudlands/cloudlands.lua | 4 ++-- mods/nether/nether/init.lua | 2 +- mods/other_worlds/settings.lua | 8 ++++---- mods/pbj_pup/init.lua | 18 +++++++++++------- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/mods/cloudlands/cloudlands.lua b/mods/cloudlands/cloudlands.lua index 841a51b6..b43ae346 100644 --- a/mods/cloudlands/cloudlands.lua +++ b/mods/cloudlands/cloudlands.lua @@ -1,8 +1,8 @@ local ALTITUDE = 600 -- average altitude of islands local ALTITUDE_AMPLITUDE = 400 -- rough island altitude variance (plus or minus) local GENERATE_ORES = true -- set to true for island core stone to contain patches of dirt and sand etc. -local LOWLAND_BIOMES = false or -- If true then determine an island's biome using the biome at altitude "LOWLAND_BIOME_ALTITUDE" - minetest.get_modpath("ethereal") ~= nil -- Ethereal has an alpine biome above altitude 40, so default to lowland biomes +local LOWLAND_BIOMES = false --or -- If true then determine an island's biome using the biome at altitude "LOWLAND_BIOME_ALTITUDE" + --minetest.get_modpath("ethereal") ~= nil -- Ethereal has an alpine biome above altitude 40, so default to lowland biomes local LOWLAND_BIOME_ALTITUDE = 10 -- Higher than beaches, lower than mountains (See LOWLAND_BIOMES) local VINE_COVERAGE = 0.3 -- set to 0 to turn off vines local REEF_RARITY = 0.015 -- Chance of a viable island having a reef or atoll diff --git a/mods/nether/nether/init.lua b/mods/nether/nether/init.lua index fd3bf51b..6ea78a29 100644 --- a/mods/nether/nether/init.lua +++ b/mods/nether/nether/init.lua @@ -20,7 +20,7 @@ end --== EDITABLE OPTIONS ==-- -- Depth of the nether -local nether_middle = -30000 +local nether_middle = -14800 -- forest bottom perlin multiplication local f_bottom_scale = 4 diff --git a/mods/other_worlds/settings.lua b/mods/other_worlds/settings.lua index bc35f8bc..3231d646 100644 --- a/mods/other_worlds/settings.lua +++ b/mods/other_worlds/settings.lua @@ -14,9 +14,9 @@ otherworlds.settings.space_asteroids = { -- set to false to prevent space mapgen enable = core.settings:get_bool("otherworlds.space", true), -- minimum height of space layer - YMIN = tonumber(core.settings:get("otherworlds.space.ymin") or 20000), + YMIN = tonumber(core.settings:get("otherworlds.space.ymin") or 10000), -- maximum height for space layer - YMAX = tonumber(core.settings:get("otherworlds.space.ymax") or 25000) + YMAX = tonumber(core.settings:get("otherworlds.space.ymax") or 12500) } -- redsky_asteroids @@ -25,9 +25,9 @@ otherworlds.settings.redsky_asteroids = { -- set to false to prevent redsky mapgen enable = core.settings:get_bool("otherworlds.redsky", true), -- minimum height of redsky layer - YMIN = tonumber(core.settings:get("otherworlds.redsky.ymin") or 25000), + YMIN = tonumber(core.settings:get("otherworlds.redsky.ymin") or 12501), -- maximum height for redsky layer - YMAX = tonumber(core.settings:get("otherworlds.redsky.ymax") or 30000) + YMAX = tonumber(core.settings:get("otherworlds.redsky.ymax") or 15200) } -- gravity diff --git a/mods/pbj_pup/init.lua b/mods/pbj_pup/init.lua index 350ac333..67f45cf7 100644 --- a/mods/pbj_pup/init.lua +++ b/mods/pbj_pup/init.lua @@ -93,16 +93,20 @@ local function generate(minp, maxp, seed) local y_min = math.max(minp.y, height_min) local y_max = math.min(maxp.y, height_max) + local volume = (maxp.x - minp.x + 1) * (y_max - y_min + 1) * (maxp.z - minp.z + 1) local pr = PseudoRandom(seed + 9324342) + local max_num_nyancats = math.floor(volume / (16 * 16 * 16)) - if pr:next(0, chance) == 0 then - local x0 = pr:next(minp.x, maxp.x) - local y0 = pr:next(minp.y, maxp.y) - local z0 = pr:next(minp.z, maxp.z) - local p0 = { x = x0, y = y0, z = z0 } - - place(p0, pr:next(0, 3), pr:next(3, 15)) + for i = 1, max_num_nyancats do + if pr:next(0, 1000) == 0 then + local x0 = pr:next(minp.x, maxp.x) + local y0 = pr:next(minp.y, maxp.y) + local z0 = pr:next(minp.z, maxp.z) + local p0 = {x = x0, y = y0, z = z0} + nyancat.place(p0, pr:next(0, 3), pr:next(3, 15)) + end end + end core.register_on_generated(generate)