diff --git a/minetest.conf b/minetest.conf index 03a63bc..2b0e186 100644 --- a/minetest.conf +++ b/minetest.conf @@ -75,5 +75,5 @@ water_level = 0 # i don't really know what these numbers change, but whatever :) # offset, scale, (spread factors), seed offset, number of octaves, persistence, lacunarity. -mg_biome_np_humidity = 50, 20, (600, 850, 600), 31478, 3, 0.5, 2.0 -mgv7_np_terrain_base = 10, 30, (750, 1500, 750), 88533, 8, 0.65, 2, 2 \ No newline at end of file +mg_biome_np_humidity = 50, 20, (600, 850, 600), 31478, 2, 0.5, 2.0 +mgv7_np_terrain_base = 10, 30, (750, 1500, 750), 88533, 6, 0.65, 2, 2 \ No newline at end of file diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index a3deac7..2c00a68 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -125,7 +125,7 @@ minetest.register_biome( depth_filler = 6, depth_top = 1, - y_min = 2, + y_min = 10, y_max = 50, heat_point = 30, @@ -166,6 +166,23 @@ minetest.register_biome( humidity_point = 35, }) +minetest.register_biome( + { + name = "Chaparral", + + node_top = "default:dirt_with_dry_grass", + node_filler = "default:dirt", + + depth_filler = 0, + depth_top = 1, + + y_min = 56, + y_max = 32000, + + heat_point = 60, + humidity_point = 30, + }) + minetest.register_biome( { name = "Savanna", @@ -176,11 +193,11 @@ minetest.register_biome( depth_filler = 2, depth_top = 1, - y_min = 0, - y_max = 32000, + y_min = 1, + y_max = 55, heat_point = 60, - humidity_point = 30, + humidity_point = 25, }) minetest.register_biome( @@ -193,7 +210,7 @@ minetest.register_biome( depth_filler = 8, depth_top = 3, - y_min = 0, + y_min = 1, y_max = 32000, heat_point = 70, @@ -229,7 +246,7 @@ minetest.register_biome( depth_top = 1, y_min = -32000, - y_max = -1, + y_max = 0, heat_point = 60, humidity_point = 30, @@ -346,7 +363,7 @@ minetest.register_decoration( place_on = "default:dirt_with_dry_grass", sidelen = 16, fill_ratio = 0.07, - biomes = {"Desert", "Savanna"}, + biomes = {"Desert", "Savanna", "Chaparral"}, decoration = {"default:dry_grass"}, y_min = 10, y_max = 500, @@ -432,4 +449,36 @@ minetest.register_decoration( rotation = "random", }) +-- Shrubs + +minetest.register_decoration( + { + deco_type = "schematic", + place_on = {"default:dirt_with_dry_grass"}, + sidelen = 16, + fill_ratio = 0.005, + biomes = {"Savanna", "Chaparral"}, + flags = "place_center_x, place_center_z", + replacements = {["default:leaves"] = "default:dry_leaves"}, + schematic = minetest.get_modpath("default").."/schematics/default_shrub.mts", + y_min = 3, + y_max = 32000, + rotation = "0", + }) + +minetest.register_decoration( + { + deco_type = "schematic", + place_on = {"default:dirt_with_dry_grass"}, + sidelen = 16, + fill_ratio = 0.06, + biomes = {"Chaparral"}, + flags = "place_center_x, place_center_z", + replacements = {["default:leaves"] = "default:dry_leaves"}, + schematic = minetest.get_modpath("default").."/schematics/default_bush.mts", + y_min = -32000, + y_max = 32000, + rotation = "0", + }) + default.log("mapgen", "loaded") \ No newline at end of file diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 828600d..7bf94a4 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -430,6 +430,32 @@ minetest.register_node( sounds = default.node_sound_leaves_defaults(), }) +minetest.register_node( + "default:dry_leaves", + { + description = "Dry Leaves", + drawtype = "allfaces_optional", + visual_scale = 1.3, + tiles ={"default_dry_leaves.png"}, + paramtype = "light", + waving = 1, + is_ground_content = false, + groups = {snappy=3, leafdecay=3, fall_damage_add_percent=-20, leaves = 1}, + drop = { + max_items = 1, + items = { + { + items = {"default:dry_leaves"}, + }, + { + items = {"default:dry_grass"}, + rarity = 6, + } + } + }, + sounds = default.node_sound_leaves_defaults(), + }) + minetest.register_node( "default:cactus", { diff --git a/mods/default/schematics/default_bush.mts b/mods/default/schematics/default_bush.mts new file mode 100644 index 0000000..16c1e73 Binary files /dev/null and b/mods/default/schematics/default_bush.mts differ diff --git a/mods/default/schematics/default_house.mts b/mods/default/schematics/default_house.mts deleted file mode 100644 index 1d09bb3..0000000 Binary files a/mods/default/schematics/default_house.mts and /dev/null differ diff --git a/mods/default/schematics/default_shrub.mts b/mods/default/schematics/default_shrub.mts new file mode 100644 index 0000000..25be05b Binary files /dev/null and b/mods/default/schematics/default_shrub.mts differ diff --git a/mods/default/schematics/default_tree.mts b/mods/default/schematics/default_tree.mts index db404b5..b3851d3 100644 Binary files a/mods/default/schematics/default_tree.mts and b/mods/default/schematics/default_tree.mts differ diff --git a/mods/default/textures/default_dry_leaves.png b/mods/default/textures/default_dry_leaves.png new file mode 100644 index 0000000..6d9ddbf Binary files /dev/null and b/mods/default/textures/default_dry_leaves.png differ diff --git a/mods/default/textures/default_dry_leaves.xcf b/mods/default/textures/default_dry_leaves.xcf new file mode 100644 index 0000000..f1286c8 Binary files /dev/null and b/mods/default/textures/default_dry_leaves.xcf differ