forked from VoxeLibre/VoxeLibre
Compare commits
3 Commits
master
...
cherry_gro
Author | SHA1 | Date |
---|---|---|
cora | 56f810f27c | |
cora | afc6be0168 | |
cora | ded18a32e2 |
|
@ -101,3 +101,38 @@ mesecon.register_button(
|
|||
true,
|
||||
nil,
|
||||
"mesecons_button_push_wood")
|
||||
|
||||
|
||||
-- petals
|
||||
minetest.register_node("mcl_cherry_blossom:pink_petals",{
|
||||
description = S("Pink Petals"),
|
||||
doc_items_longdesc = S("Pink Petals are ground decoration of cherry grove biomes"),
|
||||
doc_items_hidden = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
buildable_to = true,
|
||||
floodable = true,
|
||||
pointable = true,
|
||||
drawtype = "nodebox",
|
||||
node_box = {type = "fixed", fixed = {-1/2, -1/2, -1/2, 1/2, -7.9/16, 1/2}},
|
||||
collision_box = {type = "fixed", fixed = {-1/2, -1/2, -1/2, 1/2, -7.9/16, 1/2}},
|
||||
groups = {
|
||||
shearsy=1,
|
||||
handy=1,
|
||||
flammable=3,
|
||||
attached_node=1,
|
||||
dig_by_piston=1,
|
||||
--not_in_creative_inventory=1,
|
||||
},
|
||||
use_texture_alpha = "clip",
|
||||
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
||||
tiles = {
|
||||
"mcl_cherry_blossom_pink_petals.png",
|
||||
"mcl_cherry_blossom_pink_petals.png^[transformFY", -- mirror
|
||||
"blank.png" -- empty
|
||||
},
|
||||
_mcl_hardness = 0,
|
||||
_mcl_blast_resistance = 0,
|
||||
})
|
||||
|
|
|
@ -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.007,
|
||||
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.007,
|
||||
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)
|
||||
|
|
|
@ -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
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
Loading…
Reference in New Issue