From 820d52006183ecc2cf075ac37305b691c1cbc305 Mon Sep 17 00:00:00 2001 From: kaadmy Date: Sat, 3 Oct 2015 15:17:00 -0700 Subject: [PATCH] added wasteland biome --- mods/default/mapgen.lua | 51 +++++++++++++++++- mods/default/nodes.lua | 11 ++++ .../default/schematics/default_large_rock.mts | Bin 0 -> 80 bytes .../default/schematics/default_small_rock.mts | Bin 0 -> 76 bytes 4 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 mods/default/schematics/default_large_rock.mts create mode 100644 mods/default/schematics/default_small_rock.mts diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index a319ea1..d5f320c 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -123,7 +123,7 @@ minetest.register_biome( name = "Chaparral", node_top = "default:dirt_with_dry_grass", - node_filler = "default:dirt", + node_filler = "default:dry_dirt", depth_filler = 0, depth_top = 1, @@ -140,7 +140,7 @@ minetest.register_biome( name = "Savanna", node_top = "default:dirt_with_dry_grass", - node_filler = "default:dirt", + node_filler = "default:dry_dirt", depth_filler = 2, depth_top = 1, @@ -169,6 +169,23 @@ minetest.register_biome( humidity_point = 20, }) +minetest.register_biome( + { + name = "Wasteland", + + node_top = "default:dry_dirt", + node_filler = "default:sandstone", + + depth_filler = 3, + depth_top = 1, + + y_min = -32000, + y_max = 32000, + + heat_point = 80, + humidity_point = 20, + }) + -- Oceans minetest.register_biome( @@ -464,6 +481,36 @@ minetest.register_decoration( rotation = "0", }) +-- Rocks + +minetest.register_decoration( + { + deco_type = "schematic", + place_on = {"default:sandstone"}, + sidelen = 16, + fill_ratio = 0.006, + biomes = {"Wasteland"}, + flags = "place_center_x, place_center_z", + schematic = minetest.get_modpath("default").."/schematics/default_small_rock.mts", + y_min = -32000, + y_max = 32000, + rotation = "random", + }) + +minetest.register_decoration( + { + deco_type = "schematic", + place_on = {"default:sandstone"}, + sidelen = 16, + fill_ratio = 0.004, + biomes = {"Wasteland"}, + flags = "place_center_x, place_center_z", + schematic = minetest.get_modpath("default").."/schematics/default_large_rock.mts", + y_min = -32000, + y_max = 32000, + rotation = "random", + }) + -- -- Ore generation -- diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 0991b46..4684cac 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -87,6 +87,17 @@ minetest.register_node( sounds = default.node_sound_dirt_defaults(), }) +minetest.register_node( + "default:dry_dirt", + { + description = "Dry Dirt", + tiles ={"default_dirt.png"}, + stack_max = 240, + groups = {crumbly=3, soil=1, fall_damage_add_percent=-10}, + is_ground_content = true, + sounds = default.node_sound_dirt_defaults(), + }) + minetest.register_node( "default:swamp_dirt", { diff --git a/mods/default/schematics/default_large_rock.mts b/mods/default/schematics/default_large_rock.mts new file mode 100644 index 0000000000000000000000000000000000000000..d76f95717ade0f96051ac081b41d74976450fc79 GIT binary patch literal 80 zcmeYb3HD`RVPIllW?-(buLn{*DXD3Rr8y;5DVaqj47@O2aY=q&Dg$$3W>LkQk literal 0 HcmV?d00001 diff --git a/mods/default/schematics/default_small_rock.mts b/mods/default/schematics/default_small_rock.mts new file mode 100644 index 0000000000000000000000000000000000000000..771d53dd6b79c267ee5bcae6e0b00855be9dcb1d GIT binary patch literal 76 zcmeYb3HD`RVPIllW?-tXuLn{*DXD3Rr8y;5DVaqj47@O2aY=q&Dg$$3W>LkQ