Add CherryGrove biome

This commit is contained in:
cora 2023-07-20 00:19:02 +02:00 committed by the-real-herowl
parent ce56f396b1
commit ded18a32e2
2 changed files with 77 additions and 5 deletions

View file

@ -27,6 +27,7 @@ local mod_mcl_mushrooms = minetest.get_modpath("mcl_mushrooms")
local mod_mcl_crimson = minetest.get_modpath("mcl_crimson")
local mod_mcl_blackstone = minetest.get_modpath("mcl_blackstone")
local mod_mcl_mangrove = minetest.get_modpath("mcl_mangrove")
local mod_cherry_blossom = minetest.get_modpath("mcl_cherry_blossom")
local deco_id_chorus_plant
@ -698,6 +699,24 @@ local function register_biomes()
_mcl_fogcolor = overworld_fogcolor
})
minetest.register_biome({
name = "CherryGrove",
node_top = "mcl_core:dirt_with_grass",
depth_top = 1,
node_filler = "mcl_core:dirt",
depth_filler = 2,
node_riverbed = "mcl_core:sand",
depth_riverbed = 2,
y_min = 18,
y_max = mcl_vars.mg_overworld_max,
humidity_point = 41,
heat_point = 55,
_mcl_biome_type = "medium",
_mcl_palette_index = 11,
_mcl_skycolor = "#78A7FF",
_mcl_fogcolor = overworld_fogcolor
})
-- Sunflower Plains
minetest.register_biome({
name = "SunflowerPlains",
@ -4463,6 +4482,59 @@ local function register_decorations()
rotation = "random",
})
-- Cherry
for i=1,3 do
minetest.register_decoration({
deco_type = "schematic",
place_on = {"mcl_core:dirt_with_grass"},
sidelen = 80,
noise_params = {
offset = -0.0007,
scale = 0.01,
spread = {x = 250, y = 250, z = 250},
seed = 13+i,
octaves = 3,
persist = 0.6
},
biomes = {"CherryGrove"},
y_min = 1,
y_max = mcl_vars.mg_overworld_max,
schematic = mod_cherry_blossom.."/schematics/mcl_cherry_blossom_tree_"..i..".mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"mcl_core:dirt_with_grass"},
sidelen = 80,
noise_params = {
offset = -0.0007,
scale = 0.006,
spread = {x = 250, y = 250, z = 250},
seed = 32+i,
octaves = 3,
persist = 0.6
},
biomes = {"CherryGrove"},
y_min = 1,
y_max = mcl_vars.mg_overworld_max,
schematic = mod_cherry_blossom.."/schematics/mcl_cherry_blossom_tree_beehive_"..i..".mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
end
minetest.register_decoration({
deco_type = "simple",
place_on = {"mcl_core:dirt_with_grass"},
fill_ratio = 0.6,
biomes = {"CherryGrove"},
y_min = mcl_vars.mg_overworld_min,
y_max = mcl_vars.mg_overworld_max,
decoration = "mcl_cherry_blossom:pink_petals",
})
local ratio_mushroom = 0.0001
local ratio_mushroom_huge = ratio_mushroom * (11 / 12)
local ratio_mushroom_giant = ratio_mushroom * (1 / 12)
@ -4749,7 +4821,7 @@ local function register_decorations()
end
register_doubletall_grass(-0.01, 0.03, {"Taiga", "Forest", "FlowerForest", "BirchForest", "BirchForestM", "RoofedForest"})
register_doubletall_grass(-0.002, 0.03, {"Plains", "SunflowerPlains"})
register_doubletall_grass(-0.002, 0.03, {"Plains", "SunflowerPlains", "CherryGrove"})
register_doubletall_grass(-0.0005, -0.03, {"Savanna", "SavannaM"})
-- Large ferns
@ -5263,9 +5335,9 @@ local function register_decorations()
})
-- Grasses and ferns
local grass_forest = {"Plains", "Taiga", "Forest", "FlowerForest", "BirchForest", "BirchForestM", "RoofedForest", "Swampland", }
local grass_forest = {"Plains", "Taiga", "Forest", "FlowerForest", "BirchForest", "BirchForestM", "RoofedForest", "Swampland" }
local grass_mpf = {"MesaPlateauF_grasstop"}
local grass_plains = {"Plains", "SunflowerPlains", "JungleEdge", "JungleEdgeM", "MangroveSwamp"}
local grass_plains = {"Plains", "SunflowerPlains", "BambooJungle", "JungleEdge", "JungleEdgeM", "MangroveSwamp", "CherryGrove" }
local grass_savanna = {"Savanna", "SavannaM"}
local grass_sparse = {"ExtremeHills", "ExtremeHills+", "ExtremeHills+_snowtop", "ExtremeHillsM", "Jungle"}
local grass_mpfm = {"MesaPlateauFM_grasstop"}
@ -5633,7 +5705,7 @@ local function register_decorations()
end
end
local flower_biomes1 = {"Plains", "SunflowerPlains", "RoofedForest", "Forest", "BirchForest", "BirchForestM", "Taiga", "ColdTaiga", "Jungle", "JungleM", "JungleEdge", "JungleEdgeM", "Savanna", "SavannaM", "ExtremeHills", "ExtremeHillsM", "ExtremeHills+", "ExtremeHills+_snowtop"}
local flower_biomes1 = {"Plains", "SunflowerPlains", "RoofedForest", "Forest", "BirchForest", "BirchForestM", "Taiga", "ColdTaiga", "Jungle", "JungleM", "BambooJungle", "JungleEdge", "JungleEdgeM", "Savanna", "SavannaM", "ExtremeHills", "ExtremeHillsM", "ExtremeHills+", "ExtremeHills+_snowtop", "CherryGrove" }
register_flower("dandelion", flower_biomes1, 8)
register_flower("poppy", flower_biomes1, 9439)

View file

@ -1,4 +1,4 @@
name = mcl_biomes
author = maikerumine
description = Adds the various biomes and biome-related things for non-v6 map generators.
depends = mcl_init, mcl_mapgen_core, mcl_core, mcl_worlds, mcl_farming, mcl_flowers, mcl_end, mcl_ocean, mcl_crimson, mcl_blackstone, mcl_mangrove
depends = mcl_init, mcl_mapgen_core, mcl_core, mcl_worlds, mcl_farming, mcl_flowers, mcl_end, mcl_ocean, mcl_crimson, mcl_blackstone, mcl_mangrove, mcl_cherry_blossom