Tiefen und Höhen der Mods/Biome angepasst
This commit is contained in:
parent
ee3c9fbad6
commit
f7d9844d54
4 changed files with 18 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
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 }
|
||||
|
||||
place(p0, pr:next(0, 3), pr:next(3, 15))
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue