Add biome type to biome metadata

This commit is contained in:
Wuzzy 2019-03-25 09:04:41 +01:00
parent 2f346cfc1d
commit 2d34a2982a
1 changed files with 88 additions and 0 deletions

View File

@ -15,6 +15,10 @@ local deco_id_chorus_plant
-- Register biomes -- Register biomes
-- --
--[[ Special biome field: _mcl_biome_type:
Rough categorization of biomes: One of "snowy", "cold", "medium" and "hot"
Based off <https://minecraft.gamepedia.com/Biomes> ]]
local function register_classic_superflat_biome() local function register_classic_superflat_biome()
-- Classic Superflat: bedrock (not part of biome), 2 dirt, 1 grass block -- Classic Superflat: bedrock (not part of biome), 2 dirt, 1 grass block
minetest.register_biome({ minetest.register_biome({
@ -28,6 +32,7 @@ local function register_classic_superflat_biome()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 50, humidity_point = 50,
heat_point = 50, heat_point = 50,
_mcl_biome_type = "medium",
}) })
end end
@ -133,6 +138,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 24, humidity_point = 24,
heat_point = -5, heat_point = -5,
_mcl_biome_type = "snowy",
}) })
minetest.register_biome({ minetest.register_biome({
name = "IcePlainsSpikes_ocean", name = "IcePlainsSpikes_ocean",
@ -147,6 +153,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 24, humidity_point = 24,
heat_point = -5, heat_point = -5,
_mcl_biome_type = "snowy",
}) })
-- Cold Taiga -- Cold Taiga
@ -163,6 +170,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 58, humidity_point = 58,
heat_point = 8, heat_point = 8,
_mcl_biome_type = "snowy",
}) })
-- A cold beach-like biome, implemented as low part of Cold Taiga -- A cold beach-like biome, implemented as low part of Cold Taiga
@ -181,6 +189,7 @@ local function register_biomes()
y_max = 2, y_max = 2,
humidity_point = 58, humidity_point = 58,
heat_point = 8, heat_point = 8,
_mcl_biome_type = "snowy",
}) })
-- Water part of the beach. Added to prevent snow being on the ice. -- Water part of the beach. Added to prevent snow being on the ice.
minetest.register_biome({ minetest.register_biome({
@ -197,6 +206,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 58, humidity_point = 58,
heat_point = 8, heat_point = 8,
_mcl_biome_type = "snowy",
}) })
minetest.register_biome({ minetest.register_biome({
name = "ColdTaiga_ocean", name = "ColdTaiga_ocean",
@ -211,6 +221,7 @@ local function register_biomes()
humidity_point = 58, humidity_point = 58,
heat_point = 8, heat_point = 8,
vertical_blend = 1, vertical_blend = 1,
_mcl_biome_type = "snowy",
}) })
-- Mega Taiga -- Mega Taiga
@ -226,6 +237,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 76, humidity_point = 76,
heat_point = 10, heat_point = 10,
_mcl_biome_type = "cold",
}) })
minetest.register_biome({ minetest.register_biome({
name = "MegaTaiga_ocean", name = "MegaTaiga_ocean",
@ -239,6 +251,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 76, humidity_point = 76,
heat_point = 10, heat_point = 10,
_mcl_biome_type = "cold",
}) })
-- Mega Spruce Taiga -- Mega Spruce Taiga
@ -254,6 +267,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 100, humidity_point = 100,
heat_point = 8, heat_point = 8,
_mcl_biome_type = "cold",
}) })
minetest.register_biome({ minetest.register_biome({
name = "MegaSpruceTaiga_ocean", name = "MegaSpruceTaiga_ocean",
@ -267,6 +281,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 100, humidity_point = 100,
heat_point = 8, heat_point = 8,
_mcl_biome_type = "cold",
}) })
-- Extreme Hills -- Extreme Hills
@ -283,6 +298,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 10, humidity_point = 10,
heat_point = 45, heat_point = 45,
_mcl_biome_type = "cold",
}) })
minetest.register_biome({ minetest.register_biome({
name = "ExtremeHills_beach", name = "ExtremeHills_beach",
@ -297,6 +313,7 @@ local function register_biomes()
y_max = 3, y_max = 3,
humidity_point = 10, humidity_point = 10,
heat_point = 45, heat_point = 45,
_mcl_biome_type = "cold",
}) })
minetest.register_biome({ minetest.register_biome({
name = "ExtremeHills_ocean", name = "ExtremeHills_ocean",
@ -311,6 +328,7 @@ local function register_biomes()
vertical_blend = 1, vertical_blend = 1,
humidity_point = 10, humidity_point = 10,
heat_point = 45, heat_point = 45,
_mcl_biome_type = "cold",
}) })
-- Extreme Hills M -- Extreme Hills M
@ -327,6 +345,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 0, humidity_point = 0,
heat_point = 25, heat_point = 25,
_mcl_biome_type = "cold",
}) })
minetest.register_biome({ minetest.register_biome({
name = "ExtremeHillsM_ocean", name = "ExtremeHillsM_ocean",
@ -340,6 +359,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 0, humidity_point = 0,
heat_point = 25, heat_point = 25,
_mcl_biome_type = "cold",
}) })
-- Extreme Hills+ -- Extreme Hills+
@ -358,6 +378,7 @@ local function register_biomes()
humidity_point = 24, humidity_point = 24,
heat_point = 25, heat_point = 25,
vertical_blend = 6, vertical_blend = 6,
_mcl_biome_type = "cold",
}) })
---- Sub-biome for Extreme Hills+ for those snow forests ---- Sub-biome for Extreme Hills+ for those snow forests
minetest.register_biome({ minetest.register_biome({
@ -374,6 +395,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 24, humidity_point = 24,
heat_point = 25, heat_point = 25,
_mcl_biome_type = "cold",
}) })
minetest.register_biome({ minetest.register_biome({
name = "ExtremeHills+_ocean", name = "ExtremeHills+_ocean",
@ -387,6 +409,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 24, humidity_point = 24,
heat_point = 25, heat_point = 25,
_mcl_biome_type = "cold",
}) })
-- Stone beach -- Stone beach
@ -400,6 +423,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 0, humidity_point = 0,
heat_point = 8, heat_point = 8,
_mcl_biome_type = "cold",
}) })
minetest.register_biome({ minetest.register_biome({
@ -413,6 +437,7 @@ local function register_biomes()
vertical_blend = 2, vertical_blend = 2,
humidity_point = 0, humidity_point = 0,
heat_point = 8, heat_point = 8,
_mcl_biome_type = "cold",
}) })
-- Ice Plains -- Ice Plains
@ -432,6 +457,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 24, humidity_point = 24,
heat_point = 8, heat_point = 8,
_mcl_biome_type = "snowy",
}) })
minetest.register_biome({ minetest.register_biome({
name = "IcePlains_ocean", name = "IcePlains_ocean",
@ -445,6 +471,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 24, humidity_point = 24,
heat_point = 8, heat_point = 8,
_mcl_biome_type = "snowy",
}) })
-- Plains -- Plains
@ -460,6 +487,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 39, humidity_point = 39,
heat_point = 58, heat_point = 58,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Plains_beach", name = "Plains_beach",
@ -473,6 +501,7 @@ local function register_biomes()
y_max = 2, y_max = 2,
humidity_point = 39, humidity_point = 39,
heat_point = 58, heat_point = 58,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Plains_ocean", name = "Plains_ocean",
@ -486,6 +515,7 @@ local function register_biomes()
y_max = -1, y_max = -1,
humidity_point = 39, humidity_point = 39,
heat_point = 58, heat_point = 58,
_mcl_biome_type = "medium",
}) })
-- Sunflower Plains -- Sunflower Plains
@ -501,6 +531,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 28, humidity_point = 28,
heat_point = 45, heat_point = 45,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "SunflowerPlains_ocean", name = "SunflowerPlains_ocean",
@ -514,6 +545,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 28, humidity_point = 28,
heat_point = 45, heat_point = 45,
_mcl_biome_type = "medium",
}) })
-- Taiga -- Taiga
@ -529,6 +561,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 58, humidity_point = 58,
heat_point = 22, heat_point = 22,
_mcl_biome_type = "cold",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Taiga_beach", name = "Taiga_beach",
@ -542,6 +575,7 @@ local function register_biomes()
y_max = 3, y_max = 3,
humidity_point = 58, humidity_point = 58,
heat_point = 22, heat_point = 22,
_mcl_biome_type = "cold",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Taiga_ocean", name = "Taiga_ocean",
@ -555,6 +589,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 58, humidity_point = 58,
heat_point = 22, heat_point = 22,
_mcl_biome_type = "cold",
}) })
-- Forest -- Forest
@ -570,6 +605,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 61, humidity_point = 61,
heat_point = 45, heat_point = 45,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Forest_beach", name = "Forest_beach",
@ -583,6 +619,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 61, humidity_point = 61,
heat_point = 45, heat_point = 45,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Forest_ocean", name = "Forest_ocean",
@ -596,6 +633,7 @@ local function register_biomes()
y_max = -2, y_max = -2,
humidity_point = 61, humidity_point = 61,
heat_point = 45, heat_point = 45,
_mcl_biome_type = "medium",
}) })
-- Flower Forest -- Flower Forest
@ -611,6 +649,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 44, humidity_point = 44,
heat_point = 32, heat_point = 32,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "FlowerForest_beach", name = "FlowerForest_beach",
@ -624,6 +663,7 @@ local function register_biomes()
y_max = 2, y_max = 2,
humidity_point = 44, humidity_point = 44,
heat_point = 32, heat_point = 32,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "FlowerForest_ocean", name = "FlowerForest_ocean",
@ -637,6 +677,7 @@ local function register_biomes()
y_max = -3, y_max = -3,
humidity_point = 44, humidity_point = 44,
heat_point = 32, heat_point = 32,
_mcl_biome_type = "medium",
}) })
-- Birch Forest -- Birch Forest
@ -652,6 +693,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 78, humidity_point = 78,
heat_point = 31, heat_point = 31,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "BirchForest_ocean", name = "BirchForest_ocean",
@ -665,6 +707,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 78, humidity_point = 78,
heat_point = 31, heat_point = 31,
_mcl_biome_type = "medium",
}) })
-- Birch Forest M -- Birch Forest M
@ -680,6 +723,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 77, humidity_point = 77,
heat_point = 27, heat_point = 27,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "BirchForestM_ocean", name = "BirchForestM_ocean",
@ -693,6 +737,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 77, humidity_point = 77,
heat_point = 27, heat_point = 27,
_mcl_biome_type = "medium",
}) })
-- Desert -- Desert
@ -709,6 +754,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 26, humidity_point = 26,
heat_point = 94, heat_point = 94,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Desert_ocean", name = "Desert_ocean",
@ -722,6 +768,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 26, humidity_point = 26,
heat_point = 94, heat_point = 94,
_mcl_biome_type = "hot",
}) })
-- Roofed Forest -- Roofed Forest
@ -737,6 +784,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 94, humidity_point = 94,
heat_point = 27, heat_point = 27,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "RoofedForest_ocean", name = "RoofedForest_ocean",
@ -750,6 +798,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 94, humidity_point = 94,
heat_point = 27, heat_point = 27,
_mcl_biome_type = "medium",
}) })
-- Mesa: Starts with a couple of sand-covered layers (the "sandlevel"), -- Mesa: Starts with a couple of sand-covered layers (the "sandlevel"),
@ -766,6 +815,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 0, humidity_point = 0,
heat_point = 100, heat_point = 100,
_mcl_biome_type = "hot",
}) })
-- Helper biome for the red sand at the bottom of Mesas. -- Helper biome for the red sand at the bottom of Mesas.
minetest.register_biome({ minetest.register_biome({
@ -781,6 +831,7 @@ local function register_biomes()
y_max = 10, y_max = 10,
humidity_point = 0, humidity_point = 0,
heat_point = 100, heat_point = 100,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Mesa_ocean", name = "Mesa_ocean",
@ -795,6 +846,7 @@ local function register_biomes()
vertical_blend = 1, vertical_blend = 1,
humidity_point = 0, humidity_point = 0,
heat_point = 100, heat_point = 100,
_mcl_biome_type = "hot",
}) })
-- Mesa Bryce: Variant of Mesa, but with perfect strata and a much smaller red sand desert -- Mesa Bryce: Variant of Mesa, but with perfect strata and a much smaller red sand desert
@ -810,6 +862,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = -5, humidity_point = -5,
heat_point = 100, heat_point = 100,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "MesaBryce_sandlevel", name = "MesaBryce_sandlevel",
@ -824,6 +877,7 @@ local function register_biomes()
y_max = 3, y_max = 3,
humidity_point = -5, humidity_point = -5,
heat_point = 100, heat_point = 100,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "MesaBryce_ocean", name = "MesaBryce_ocean",
@ -838,6 +892,7 @@ local function register_biomes()
vertical_blend = 1, vertical_blend = 1,
humidity_point = -5, humidity_point = -5,
heat_point = 100, heat_point = 100,
_mcl_biome_type = "hot",
}) })
@ -857,6 +912,7 @@ local function register_biomes()
humidity_point = 0, humidity_point = 0,
heat_point = 60, heat_point = 60,
vertical_blend = 0, -- we want a sharp transition vertical_blend = 0, -- we want a sharp transition
_mcl_biome_type = "hot",
}) })
-- The oak forest plateau of this biome. -- The oak forest plateau of this biome.
-- This is a plateau for grass blocks, dry shrubs, tall grass, coarse dirt and oaks. -- This is a plateau for grass blocks, dry shrubs, tall grass, coarse dirt and oaks.
@ -874,6 +930,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 0, humidity_point = 0,
heat_point = 60, heat_point = 60,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "MesaPlateauF_sandlevel", name = "MesaPlateauF_sandlevel",
@ -888,6 +945,7 @@ local function register_biomes()
y_max = 10, y_max = 10,
humidity_point = 0, humidity_point = 0,
heat_point = 60, heat_point = 60,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "MesaPlateauF_ocean", name = "MesaPlateauF_ocean",
@ -902,6 +960,7 @@ local function register_biomes()
vertical_blend = 1, vertical_blend = 1,
humidity_point = 0, humidity_point = 0,
heat_point = 60, heat_point = 60,
_mcl_biome_type = "hot",
}) })
-- Mesa Plateau FM -- Mesa Plateau FM
@ -921,6 +980,7 @@ local function register_biomes()
humidity_point = -5, humidity_point = -5,
heat_point = 60, heat_point = 60,
vertical_blend = 5, vertical_blend = 5,
_mcl_biome_type = "hot",
}) })
-- Grass plateau -- Grass plateau
minetest.register_biome({ minetest.register_biome({
@ -936,6 +996,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = -5, humidity_point = -5,
heat_point = 60, heat_point = 60,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "MesaPlateauFM_sandlevel", name = "MesaPlateauFM_sandlevel",
@ -952,6 +1013,7 @@ local function register_biomes()
humidity_point = -5, humidity_point = -5,
heat_point = 60, heat_point = 60,
vertical_blend = 4, vertical_blend = 4,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "MesaPlateauFM_ocean", name = "MesaPlateauFM_ocean",
@ -966,6 +1028,7 @@ local function register_biomes()
vertical_blend = 2, vertical_blend = 2,
humidity_point = -5, humidity_point = -5,
heat_point = 60, heat_point = 60,
_mcl_biome_type = "hot",
}) })
@ -982,6 +1045,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 36, humidity_point = 36,
heat_point = 79, heat_point = 79,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Savanna_beach", name = "Savanna_beach",
@ -995,6 +1059,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 36, humidity_point = 36,
heat_point = 79, heat_point = 79,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Savanna_ocean", name = "Savanna_ocean",
@ -1008,6 +1073,7 @@ local function register_biomes()
y_max = -2, y_max = -2,
humidity_point = 36, humidity_point = 36,
heat_point = 79, heat_point = 79,
_mcl_biome_type = "hot",
}) })
-- Savanna M -- Savanna M
@ -1025,6 +1091,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 48, humidity_point = 48,
heat_point = 100, heat_point = 100,
_mcl_biome_type = "hot",
}) })
minetest.register_biome({ minetest.register_biome({
name = "SavannaM_ocean", name = "SavannaM_ocean",
@ -1038,6 +1105,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 48, humidity_point = 48,
heat_point = 100, heat_point = 100,
_mcl_biome_type = "hot",
}) })
-- Jungle -- Jungle
@ -1053,6 +1121,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 88, humidity_point = 88,
heat_point = 81, heat_point = 81,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Jungle_shore", name = "Jungle_shore",
@ -1066,6 +1135,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 88, humidity_point = 88,
heat_point = 81, heat_point = 81,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Jungle_ocean", name = "Jungle_ocean",
@ -1080,6 +1150,7 @@ local function register_biomes()
vertical_blend = 1, vertical_blend = 1,
humidity_point = 88, humidity_point = 88,
heat_point = 81, heat_point = 81,
_mcl_biome_type = "medium",
}) })
-- Jungle M -- Jungle M
@ -1096,6 +1167,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 92, humidity_point = 92,
heat_point = 81, heat_point = 81,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "JungleM_shore", name = "JungleM_shore",
@ -1109,6 +1181,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 92, humidity_point = 92,
heat_point = 81, heat_point = 81,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "JungleM_ocean", name = "JungleM_ocean",
@ -1123,6 +1196,7 @@ local function register_biomes()
vertical_blend = 1, vertical_blend = 1,
humidity_point = 92, humidity_point = 92,
heat_point = 81, heat_point = 81,
_mcl_biome_type = "medium",
}) })
-- Jungle Edge -- Jungle Edge
@ -1138,6 +1212,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 88, humidity_point = 88,
heat_point = 76, heat_point = 76,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "JungleEdge_ocean", name = "JungleEdge_ocean",
@ -1151,6 +1226,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 88, humidity_point = 88,
heat_point = 76, heat_point = 76,
_mcl_biome_type = "medium",
}) })
-- Jungle Edge M (very rare). -- Jungle Edge M (very rare).
@ -1169,6 +1245,7 @@ local function register_biomes()
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
humidity_point = 90, humidity_point = 90,
heat_point = 79, heat_point = 79,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "JungleEdgeM_ocean", name = "JungleEdgeM_ocean",
@ -1182,6 +1259,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 90, humidity_point = 90,
heat_point = 79, heat_point = 79,
_mcl_biome_type = "medium",
}) })
-- Swampland -- Swampland
@ -1198,6 +1276,7 @@ local function register_biomes()
y_max = 23, y_max = 23,
humidity_point = 90, humidity_point = 90,
heat_point = 50, heat_point = 50,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Swampland_shore", name = "Swampland_shore",
@ -1211,6 +1290,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 90, humidity_point = 90,
heat_point = 50, heat_point = 50,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "Swampland_ocean", name = "Swampland_ocean",
@ -1225,6 +1305,7 @@ local function register_biomes()
vertical_blend = 1, vertical_blend = 1,
humidity_point = 90, humidity_point = 90,
heat_point = 50, heat_point = 50,
_mcl_biome_type = "medium",
}) })
-- Mushroom Island / Mushroom Island Shore (rare) -- Mushroom Island / Mushroom Island Shore (rare)
@ -1243,6 +1324,7 @@ local function register_biomes()
vertical_blend = 1, vertical_blend = 1,
humidity_point = 106, humidity_point = 106,
heat_point = 50, heat_point = 50,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
@ -1257,6 +1339,7 @@ local function register_biomes()
y_max = 3, y_max = 3,
humidity_point = 106, humidity_point = 106,
heat_point = 50, heat_point = 50,
_mcl_biome_type = "medium",
}) })
minetest.register_biome({ minetest.register_biome({
name = "MushroomIsland_ocean", name = "MushroomIsland_ocean",
@ -1270,6 +1353,7 @@ local function register_biomes()
y_max = 0, y_max = 0,
humidity_point = 106, humidity_point = 106,
heat_point = 50, heat_point = 50,
_mcl_biome_type = "medium",
}) })
-- Add deep ocean and underground biomes automatically. -- Add deep ocean and underground biomes automatically.
@ -1290,6 +1374,7 @@ local function register_biomes()
node_riverbed = "mcl_core:gravel", node_riverbed = "mcl_core:gravel",
depth_riverbed = 2, depth_riverbed = 2,
vertical_blend = 5, vertical_blend = 5,
_mcl_biome_type = minetest.registered_biomes[biome]._mcl_biome_type,
}) })
-- Underground biomes are used to identify the underground and to prevent nodes from the surface -- Underground biomes are used to identify the underground and to prevent nodes from the surface
@ -1300,6 +1385,7 @@ local function register_biomes()
humidity_point = minetest.registered_biomes[biome].humidity_point, humidity_point = minetest.registered_biomes[biome].humidity_point,
y_min = mcl_vars.mg_overworld_min, y_min = mcl_vars.mg_overworld_min,
y_max = DEEP_OCEAN_MIN - 1, y_max = DEEP_OCEAN_MIN - 1,
_mcl_biome_type = minetest.registered_biomes[biome]._mcl_biome_type,
}) })
end end
@ -1322,6 +1408,7 @@ local function register_dimension_biomes()
y_max = mcl_vars.mg_nether_max + 80, y_max = mcl_vars.mg_nether_max + 80,
heat_point = 100, heat_point = 100,
humidity_point = 0, humidity_point = 0,
_mcl_biome_type = "hot",
}) })
--[[ THE END ]] --[[ THE END ]]
@ -1337,6 +1424,7 @@ local function register_dimension_biomes()
y_max = mcl_vars.mg_end_max + 80, y_max = mcl_vars.mg_end_max + 80,
heat_point = 50, heat_point = 50,
humidity_point = 50, humidity_point = 50,
_mcl_biome_type = "medium",
}) })
end end