From 348d4aac57d9abba13460d65feb183fd20fcc79f Mon Sep 17 00:00:00 2001 From: kaadmy Date: Sat, 3 Oct 2015 11:57:35 -0700 Subject: [PATCH] tons of small changes, and added a chaparral biome and more dry stuff --- minetest.conf | 4 +- mods/default/mapgen.lua | 63 ++++++++++++++++--- mods/default/nodes.lua | 26 ++++++++ mods/default/schematics/default_bush.mts | Bin 0 -> 112 bytes mods/default/schematics/default_house.mts | Bin 475 -> 0 bytes mods/default/schematics/default_shrub.mts | Bin 0 -> 96 bytes mods/default/schematics/default_tree.mts | Bin 133 -> 133 bytes mods/default/textures/default_dry_leaves.png | Bin 0 -> 341 bytes mods/default/textures/default_dry_leaves.xcf | Bin 0 -> 1228 bytes 9 files changed, 84 insertions(+), 9 deletions(-) create mode 100644 mods/default/schematics/default_bush.mts delete mode 100644 mods/default/schematics/default_house.mts create mode 100644 mods/default/schematics/default_shrub.mts create mode 100644 mods/default/textures/default_dry_leaves.png create mode 100644 mods/default/textures/default_dry_leaves.xcf 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 0000000000000000000000000000000000000000..16c1e73f0c481ba003603ab5359a21c4304f9749 GIT binary patch literal 112 zcmeYb3HD`RVPFQ~dLRJNiJ3(Vd?~4EiKRIuRynDOWvRss;xK+nW>HCed1gsQe0ou0 xaWMlAOroSHHML?+asmUhn+gZBPeNhZ1_|Q`8O8R6`{r>RaA09zxUoX;8vsSBBohDt literal 0 HcmV?d00001 diff --git a/mods/default/schematics/default_house.mts b/mods/default/schematics/default_house.mts deleted file mode 100644 index 1d09bb3f6ce4ca638126670825c7908acdd9c84a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 475 zcmeYb3HD`RX5eCAV_^Lc1`NUsJSnMZiKRIuRw`b}<7ljGva8mz;_)rKBh|l|d*aKflNdM8ucp=cmLc#Tzm(CuSC5NR$92_+cg$ zBoDyq$L*RX6B_^CFhrv_EOMn7!+e`9`k~0`YU`CWDmZTQN z7w4B2A-kzKF)sz-f#k&G5}++SNvSDTKpdZzpI?G7Fg*w4TezFjN{jLmL1w{J109f3 zG3V{%NUjD09+%5eulL>izs}05bEC`3U$1!@t!C`;n&2@pF}mznS;eWqKAY;(T&kM` z%YJluS9|7pie7zj!g;yt)Q2%0XS$1pQ|)|qKijrK?@?93Z-aD!JM+@}AL*4XH{;*w z_AufiERBEwMDG#40B>u`IQifd|G<$t)^C@JfnOQ!C~q gConL(8MH8}ZQwADU{UN^vP{lA;Q%j#mNst*0Q?mk1ONa4 literal 0 HcmV?d00001 diff --git a/mods/default/schematics/default_tree.mts b/mods/default/schematics/default_tree.mts index db404b56bf57804972f95356aad266e664b3dac6..b3851d307af4527db8cc28450c62e5b047a85def 100644 GIT binary patch delta 78 zcmZo=Y-Qy24GH#TU}0co;9y{_pUC52!D!%=sb=7kI*~7-YUT!q7&YU^DTYj;#>|Gw i5%R`&RMPf53%p(XgHiBdxV;ZUr=oENBg3}4$p--<1Q-6Bwehhy^emOjsbQdCYJ<=qyH{ k8fGA71gmC->u1Jd3U%Cq9}p2P^+O8~8H-9I-hx+zY3!j+P!TDfAL z%U#k;3=GM#zh)dbUb12VkFuWoA%nFM%L=C`?l_ZdcJ1N%G@N-wUsuzhs>^hL|0a79z0Nt}6LJ){U zU~NM2>x@7gAB`#<9xYHRwd?w#r^l|WKt$G^;MU1b^hVvl9k=ss+W^28E0!f zqXxGWqoTZ7B&x_4dUo6&rCFRW^0gY(!+4!dC+g(gNgZ3rsVg0$b-Jb1*VWU6t=GlX zB-X1;o%+2X-fR<{HvY2GrP8Z-o)qlQ)3iv+KL=#@W2sU8Zsj|;koQ6acYcP^e2hvp9NAdM`HL> z!yDW-lGlRooPU$z9{34-1bBYm!}EvJjIMumJ?`zV$E&&s`M)##QE|QSQzLmT{LJ~D z*;J-yHr8~Ev^^s$i7_${)|jd?5z8-G?m`{_Ls;Oi41Cq0C#Y0`bL`OGH~-_x`*tJj kE2e;H&@d??k|U;?)%t<`C9HL(VdH$DB5aSd4%2J<8zT%ruK)l5 literal 0 HcmV?d00001