commit d2b996f71b7710f3bf7bf98bf913a4d813f646d1 Author: Gael-de-Sailly Date: Sun Apr 3 11:19:43 2016 +0200 Initial commit diff --git a/30 Biomes.ggb b/30 Biomes.ggb new file mode 100644 index 0000000..1978ba2 Binary files /dev/null and b/30 Biomes.ggb differ diff --git a/beach_biomes.lua b/beach_biomes.lua new file mode 100644 index 0000000..f045af2 --- /dev/null +++ b/beach_biomes.lua @@ -0,0 +1,162 @@ +-- 1 +minetest.register_biome({ + name = "gravel_beach", + node_top = "default:gravel", + depth_top = 1, + node_filler = "default:gravel", + depth_filler = 3, + node_stone = "default:stone", + y_min = -7, + y_max = 6, + heat_point = 19, + humidity_point = 19, +}) + +-- 2 +minetest.register_biome({ + name = "sand_dunes", + node_top = "default:sand", + depth_top = 1, + node_filler = "default:sand", + depth_filler = 3, + node_stone = "default:stone", + y_min = -5, + y_max = 5, + heat_point = 21, + humidity_point = 61, +}) + +-- 3 +minetest.register_biome({ + name = "mangrove", + node_top = "default:dirt", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 4, + node_stone = "default:stone", + y_min = -4, + y_max = 0, + heat_point = 96, + humidity_point = 106, +}) + +-- 4 +minetest.register_biome({ + name = "desert_dunes", + node_top = "default:sand", + depth_top = 1, + node_filler = "default:sand", + depth_filler = 2, + node_stone = "default:stone", + y_min = -5, + y_max = 6, + heat_point = 70, + humidity_point = 6, +}) + +-- 5 +minetest.register_biome({ + name = "hot_sand_dunes", + node_top = "default:sand", + depth_top = 1, + node_filler = "default:sand", + depth_filler = 3, + node_stone = "default:stone", + y_min = -5, + y_max = 5, + heat_point = 106, + humidity_point = 49, +}) + +-- 6 +minetest.register_biome({ + name = "tundra_dunes", + node_dust = "default:snow", + node_top = "default:sand", + depth_top = 2, + node_filler = "default:gravel", + depth_filler = 1, + node_stone = "default:stone", + y_min = -5, + y_max = 2, + heat_point = 5, + humidity_point = 21, +}) + +-- Glacier 2 without snow +minetest.register_biome({ + name = "glacier_2_shore", + node_dust = "default:snowblock", + node_top = "default:ice", + depth_top = 4, + node_stone = "default:stone", + node_water_top = "default:ice", + depth_water_top = 6, + node_river_water = "default:ice", + y_min = -4, + y_max = 0, + heat_point = -19, + humidity_point = 40, +}) + +-- Glacier 3 without snow +minetest.register_biome({ + name = "glacier_3_shore", + node_dust = "default:snowblock", + node_top = "default:ice", + depth_top = 12, + node_stone = "default:stone", + node_water_top = "default:ice", + depth_water_top = 6, + node_river_water = "default:ice", + y_min = -4, + y_max = 0, + heat_point = -27, + humidity_point = 80, +}) + +-- Swamp without grass +minetest.register_biome({ + name = "swamp_shore", + node_top = "default:dirt", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 3, + node_stone = "default:stone", + y_min = -3, + y_max = 0, + heat_point = 30, + humidity_point = 114, +}) + +-- Icy swamp without snow +minetest.register_biome({ + name = "icy_swamp_shore", + node_dust = "default:snow", + node_top = "default:dirt", + depth_top = 3, + node_filler = "default:dirt", + depth_filler = 3, + node_stone = "default:stone", + node_water_top = "default:ice", + depth_water_top = 1, + node_river_water = "default:ice", + y_min = -4, + y_max = 0, + heat_point = -10, + humidity_point = 107, +}) + +-- Hot swamp without grass +minetest.register_biome({ + name = "hot_swamp_shore", + node_top = "default:dirt", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 4, + node_stone = "default:stone", + y_min = -3, + y_max = 0, + heat_point = 83, + humidity_point = 116, +}) diff --git a/decorations.lua b/decorations.lua new file mode 100644 index 0000000..d7e8f3f --- /dev/null +++ b/decorations.lua @@ -0,0 +1,401 @@ +-- Mud in swamps +minetest.register_ore({ + ore_type = "blob", + ore = "biomes:mud", + wherein = {"default:dirt", "default:dirt_with_grass"}, + clust_scarcity = 12*12*12, + clust_size = 10, + y_min = -8, + y_max = 31000, + noise_threshold = 0.0, + noise_params = { + offset = 0.5, + scale = 0.5, + spread = {x=4, y=4, z=4}, + seed = 1662, + octaves = 3, + persist = 0.7 + }, + biomes = {"swamp", "hot_swamp", "swamp_shore", "hot_swamp_shore"}, +}) + +-- Ice in cold swamps +minetest.register_ore({ + ore_type = "blob", + ore = "default:ice", + wherein = {"default:dirt", "default:dirt_with_snow"}, + clust_scarcity = 8*8*8, + clust_size = 6, + y_min = -8, + y_max = 31000, + noise_threshold = 0.0, + noise_params = { + offset = 0.5, + scale = 1, + spread = {x=4, y=4, z=4}, + seed = 1662, + octaves = 3, + persist = 0.7 + }, + biomes = {"icy_swamp", "icy_swamp_shore"}, +}) + +-- Jungle grass +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_grass", "biomes:mud"}, + sidelen = 16, + noise_params = { + offset = 0.15, + scale = -0.1, + spread = {x = 200, y = 200, z = 200}, + seed = 329, + octaves = 3, + persist = 0.6 + }, + biomes = {"rainforest", "desert_stone_grasslands", "semi-tropical_forest", "hot_swamp"}, + y_min = 1, + y_max = 31000, + decoration = "default:junglegrass", +}) + +for length = 5, 1, -1 do + -- Dense grass on grasslands + minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + noise_params = { + offset = 0.12 - 0.02 * length, + scale = 0.05, + spread = {x = 200, y = 200, z = 200}, + seed = 329, + octaves = 3, + persist = 0.6 + }, + biomes = {"stone_grasslands", "sandstone_grasslands"}, + y_min = 1, + y_max = 31000, + decoration = "default:grass_"..length, + }) + + -- Grass (mostly on forests) + minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + noise_params = { + offset = 0.03 - 0.01 * length, + scale = 0.05, + spread = {x = 200, y = 200, z = 200}, + seed = 329, + octaves = 3, + persist = 0.6 + }, + biomes = {"coniferous_forest", "deciduous_forest", "mixed_forest", "cold_deciduous_forest", "low_deciduous_forest", "hot_deciduous_forest", "bushes", "hot_pine_forest", "desert_stone_grasslands"}, + y_min = 1, + y_max = 31000, + decoration = "default:grass_"..length, + }) + + -- Dry grass + minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_dry_grass"}, + sidelen = 16, + noise_params = { + offset = 0.06 - 0.01 * length, + scale = 0.05, + spread = {x = 200, y = 200, z = 200}, + seed = 329, + octaves = 3, + persist = 0.6 + }, + biomes = {"savanna", "red_savanna", "scrub"}, + y_min = 1, + y_max = 31000, + decoration = "default:dry_grass_"..length, + }) + + -- Rare grass + minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_grass", "default:dirt_with_dry_grass"}, + sidelen = 16, + noise_params = { + offset = -0.01 * length, + scale = 0.03 + 0.005 * length, + spread = {x = 200, y = 200, z = 200}, + seed = 329, + octaves = 1, + persist = 1 + }, + biomes = {"scrub", "tundra", "semi-tropical_forest"}, + y_min = 1, + y_max = 31000, + decoration = "default:grass_"..length, + }) + + -- Rare dry grass + minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_dry_grass", "default:dirt_with_grass"}, + sidelen = 16, + noise_params = { + offset = -0.01 * length, + scale = 0.03 + 0.005 * length, + spread = {x = 200, y = 200, z = 200}, + seed = 329, + octaves = 1, + persist = 1 + }, + biomes = {"bushes", "sandstone_grasslands"}, + y_min = 1, + y_max = 31000, + decoration = "default:dry_grass_"..length, + }) +end + +-- Apple tree +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + noise_params = { + offset = 0.036, + scale = 0.022, + spread = {x = 250, y = 250, z = 250}, + seed = 2, + octaves = 3, + persist = 0.66 + }, + biomes = {"deciduous_forest", "cold_deciduous_forest", "low_deciduous_forest", "hot_deciduous_forest"}, + y_min = 1, + y_max = 31000, + schematic = minetest.get_modpath("default").."/schematics/apple_tree.mts", + flags = "place_center_x, place_center_z", +}) + +-- Rarer apple tree +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + noise_params = { + offset = 0.02, + scale = 0.02, + spread = {x = 250, y = 250, z = 250}, + seed = 45, + octaves = 3, + persist = 0.66 + }, + biomes = {"semi-tropical_forest", "mixed_forest"}, + y_min = 1, + y_max = 31000, + schematic = minetest.get_modpath("default").."/schematics/apple_tree.mts", + flags = "place_center_x, place_center_z", +}) + +-- Jungle tree +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"default:dirt_with_grass", "default:dirt"}, + sidelen = 16, + noise_params = { + offset = 0.09, + scale = -0.04, + spread = {x = 250, y = 250, z = 250}, + seed = 2, + octaves = 3, + persist = 0.66 + }, + biomes = {"rainforest", "mangrove"}, + y_min = 0, + y_max = 31000, + schematic = minetest.get_modpath("default").."/schematics/jungle_tree.mts", + flags = "place_center_x, place_center_z", + rotation = "random", +}) + +-- Rarer jungle tree +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"default:dirt_with_grass", "default:dirt"}, + sidelen = 16, + noise_params = { + offset = 0.03, + scale = -0.02, + spread = {x = 250, y = 250, z = 250}, + seed = 2, + octaves = 3, + persist = 0.66 + }, + biomes = {"semi-tropical_forest"}, + y_min = 0, + y_max = 31000, + schematic = minetest.get_modpath("default").."/schematics/jungle_tree.mts", + flags = "place_center_x, place_center_z", + rotation = "random", +}) + +-- Pine tree +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"default:dirt_with_snow", "default:dirt_with_grass"}, + sidelen = 16, + noise_params = { + offset = 0.036, + scale = 0.022, + spread = {x = 250, y = 250, z = 250}, + seed = 2, + octaves = 3, + persist = 0.66 + }, + biomes = {"taiga", "coniferous_forest"}, + y_min = 2, + y_max = 31000, + schematic = minetest.get_modpath("default").."/schematics/pine_tree.mts", + flags = "place_center_x, place_center_z", +}) + +-- Rarer pine tree +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"default:dirt_with_snow", "default:dirt_with_grass"}, + sidelen = 16, + noise_params = { + offset = 0.020, + scale = -0.020, + spread = {x = 250, y = 250, z = 250}, + seed = 45, + octaves = 3, + persist = 0.66 + }, + biomes = {"mixed_forest"}, + y_min = 2, + y_max = 31000, + schematic = minetest.get_modpath("default").."/schematics/pine_tree.mts", + flags = "place_center_x, place_center_z", +}) + +-- Acacia tree +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"default:dirt_with_dry_grass"}, + sidelen = 16, + noise_params = { + offset = 0, + scale = 0.002, + spread = {x = 250, y = 250, z = 250}, + seed = 2, + octaves = 3, + persist = 0.66 + }, + biomes = {"savanna", "red_savanna"}, + y_min = 1, + y_max = 31000, + schematic = minetest.get_modpath("default").."/schematics/acacia_tree.mts", + flags = "place_center_x, place_center_z", + rotation = "random", +}) + +-- Aspen tree +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + noise_params = { + offset = 0.0, + scale = -0.015, + spread = {x = 250, y = 250, z = 250}, + seed = 2, + octaves = 3, + persist = 0.66 + }, + biomes = {"cold_deciduous_forest", "mixed_forest"}, + y_min = 1, + y_max = 31000, + schematic = minetest.get_modpath("default").."/schematics/aspen_tree.mts", + flags = "place_center_x, place_center_z", + rotation = "random", +}) + +-- Papyrus +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"default:dirt"}, + sidelen = 16, + noise_params = { + offset = -0.1, + scale = 0.25, + spread = {x = 200, y = 200, z = 200}, + seed = 354, + octaves = 3, + persist = 0.7 + }, + biomes = {"swamp_shore", "hot_swamp_shore", "mangrove"}, + y_min = 0, + y_max = 0, + schematic = minetest.get_modpath("default").."/schematics/papyrus.mts", +}) + +-- Cactus +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:desert_sand", "default:sand"}, + sidelen = 16, + noise_params = { + offset = -0.0003, + scale = 0.0009, + spread = {x = 200, y = 200, z = 200}, + seed = 230, + octaves = 3, + persist = 0.6 + }, + biomes = {"desert", "sandstone_desert"}, + y_min = 5, + y_max = 31000, + decoration = "default:cactus", + height = 2, + height_max = 5, +}) + +-- Large cactus +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:desert_sand"}, + sidelen = 16, + noise_params = { + offset = -0.0001, + scale = 0.0003, + spread = {x = 200, y = 200, z = 200}, + seed = 230, + octaves = 3, + persist = 0.6 + }, + biomes = {"desert"}, + y_min = 5, + y_max = 31000, + decoration = "default:cactus", + height = 2, + height_max = 5, +}) + +-- Dry shrub +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:desert_sand", "default:dirt_with_snow"}, + sidelen = 16, + noise_params = { + offset = 0, + scale = 0.02, + spread = {x = 200, y = 200, z = 200}, + seed = 7448, + octaves = 3, + persist = 0.6 + }, + biomes = {"gravel_desert", "tundra", "dry_tundra", "sandstone_desert", "desert", "savanna", "red_savanna", "scrub"}, + y_min = 2, + y_max = 31000, + decoration = "default:dry_shrub", +}) diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +default diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..29dc304 --- /dev/null +++ b/init.lua @@ -0,0 +1,34 @@ +local path = minetest.get_modpath("biomes") + +minetest.clear_registered_biomes() +minetest.clear_registered_decorations() + +minetest.register_node("biomes:mud", { + description = "Mud", + tiles = {"biomes_mud.png"}, + liquid_viscosity = 8, + liquidtype = "source", + liquid_renewable = false, + liquid_alternative_source = "biomes:mud", + liquid_alternative_flowing = "biomes:mud", + liquid_range = 0, + post_effect_color = {r=115, g=61, b=31, a=255}, + drowning = 1, + walkable = false, + groups = {crumbly = 2}, + sounds = default.node_sound_dirt_defaults(), +}) + +dofile(path .. "/main_biomes.lua") +dofile(path .. "/beach_biomes.lua") +dofile(path .. "/sea_biomes.lua") +dofile(path .. "/decorations.lua") + +minetest.register_biome({ + name = "underground", + node_stone = "default:stone", + y_min = -113, + y_max = -31000, + heat_point = 50, + humidity_point = 50, +}) diff --git a/main_biomes.lua b/main_biomes.lua new file mode 100644 index 0000000..30c3400 --- /dev/null +++ b/main_biomes.lua @@ -0,0 +1,433 @@ +-- 30 main biomes + +-- 1 +minetest.register_biome({ + name = "glacier_1", + node_dust = "default:snowblock", + node_top = "default:ice", + depth_top = 2, + node_stone = "default:stone", + node_water_top = "default:ice", + depth_water_top = 2, + node_river_water = "default:ice", + y_min = -6, + y_max = 31000, + heat_point = -11, + humidity_point = 20, +}) + +-- 2 +minetest.register_biome({ + name = "glacier_2", + node_dust = "default:snowblock", + node_top = "default:snowblock", + depth_top = 3, + node_filler = "default:ice", + depth_filler = 4, + node_stone = "default:stone", + node_water_top = "default:ice", + depth_water_top = 6, + node_river_water = "default:ice", + y_min = 1, + y_max = 31000, + heat_point = -19, + humidity_point = 40, +}) + +-- 3 +minetest.register_biome({ + name = "glacier_3", + node_dust = "default:snowblock", + node_top = "default:snowblock", + depth_top = 5, + node_filler = "default:ice", + depth_filler = 12, + node_stone = "default:stone", + node_water_top = "default:ice", + depth_water_top = 10, + node_river_water = "default:ice", + y_min = 1, + y_max = 31000, + heat_point = -27, + humidity_point = 80, +}) + +-- 4 +minetest.register_biome({ + name = "taiga", + node_dust = "default:snow", + node_top = "default:dirt_with_snow", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 5, + node_stone = "default:stone", + y_min = 4, + y_max = 31000, + heat_point = 11, + humidity_point = 67, +}) + +-- 5 +minetest.register_biome({ + name = "tundra", + node_top = "default:dirt_with_snow", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 2, + node_stone = "default:stone", + y_min = 3, + y_max = 31000, + heat_point = 4, + humidity_point = 32, +}) + +-- 6 +minetest.register_biome({ + name = "coniferous_forest", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 2, + node_stone = "default:stone", + y_min = 5, + y_max = 31000, + heat_point = 22, + humidity_point = 71, +}) + +-- 7 +minetest.register_biome({ + name = "cold_gravel_desert", + node_dust = "default:snow", + node_top = "default:gravel", + depth_top = 1, + node_filler = "default:gravel", + depth_filler = 1, + node_stone = "default:stone", + y_min = -6, + y_max = 31000, + heat_point = -2, + humidity_point = 2, +}) + +-- 8 +minetest.register_biome({ + name = "gravel_desert", + node_top = "default:gravel", + depth_top = 1, + node_filler = "default:gravel", + depth_filler = 2, + node_stone = "default:stone", + y_min = 2, + y_max = 31000, + heat_point = 20, + humidity_point = -2, +}) + +-- 9 +minetest.register_biome({ + name = "dry_tundra", + node_top = "default:dirt_with_snow", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 2, + node_stone = "default:stone", + y_min = 2, + y_max = 31000, + heat_point = 4, + humidity_point = 12, +}) + +-- 10 +minetest.register_biome({ + name = "cold_desert", + node_stone = "default:stone", + y_min = 3, + y_max = 31000, + heat_point = 32, + humidity_point = -3, +}) + +-- 11 +minetest.register_biome({ + name = "swamp", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 3, + node_stone = "default:stone", + y_min = 1, + y_max = 31000, + heat_point = 30, + humidity_point = 114, +}) + +-- 12 +minetest.register_biome({ + name = "icy_swamp", + node_dust = "default:snow", + node_top = "default:dirt_with_snow", + depth_top = 3, + node_filler = "default:dirt", + depth_filler = 3, + node_stone = "default:stone", + node_water_top = "default:ice", + depth_water_top = 1, + node_river_water = "default:ice", + y_min = 1, + y_max = 31000, + heat_point = -10, + humidity_point = 107, +}) + +-- 13 +minetest.register_biome({ + name = "stone_grasslands", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 1, + node_stone = "default:stone", + y_min = 4, + y_max = 31000, + heat_point = 29, + humidity_point = 22, +}) + +-- 14 +minetest.register_biome({ + name = "mixed_forest", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 2, + node_stone = "default:stone", + y_min = 5, + y_max = 31000, + heat_point = 24, + humidity_point = 56, +}) + +-- 15 +minetest.register_biome({ + name = "cold_deciduous_forest", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 2, + node_stone = "default:stone", + y_min = 4, + y_max = 31000, + heat_point = 31, + humidity_point = 48, +}) + +-- 16 +minetest.register_biome({ + name = "deciduous_forest", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 3, + node_stone = "default:stone", + y_min = 5, + y_max = 31000, + heat_point = 45, + humidity_point = 65, +}) + +-- 17 +minetest.register_biome({ + name = "bushes", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 1, + node_stone = "default:stone", + y_min = 7, + y_max = 31000, + heat_point = 43, + humidity_point = 30, +}) + +-- 18 +minetest.register_biome({ + name = "scrub", + node_top = "default:dirt_with_dry_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 1, + node_stone = "default:stone", + y_min = 8, + y_max = 31000, + heat_point = 57, + humidity_point = 25, +}) + +-- 19 +minetest.register_biome({ + name = "hot_pine_forest", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 1, + node_stone = "default:stone", + y_min = 6, + y_max = 31000, + heat_point = 65, + humidity_point = 35, +}) + +-- 20 +minetest.register_biome({ + name = "desert", + node_top = "default:desert_sand", + depth_top = 1, + node_filler = "default:desert_sand", + depth_filler = 3, + node_stone = "default:desert_stone", + y_min = 7, + y_max = 31000, + heat_point = 89, + humidity_point = 9, +}) + +-- 21 +minetest.register_biome({ + name = "sandstone_grasslands", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 2, + node_stone = "default:sandstone", + y_min = 3, + y_max = 31000, + heat_point = 55, + humidity_point = 15, +}) + +-- 22 +minetest.register_biome({ + name = "savanna", + node_top = "default:dirt_with_dry_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 1, + node_stone = "default:stone", + y_min = 6, + y_max = 31000, + heat_point = 80, + humidity_point = 24, +}) + +-- 23 +minetest.register_biome({ + name = "desert_stone_grasslands", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 1, + node_stone = "default:desert_stone", + y_min = 4, + y_max = 31000, + heat_point = 90, + humidity_point = 41, +}) + +-- 24 +minetest.register_biome({ + name = "red_savanna", + node_top = "default:dirt_with_dry_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 1, + node_stone = "default:desert_stone", + y_min = 5, + y_max = 31000, + heat_point = 90, + humidity_point = 31, +}) + +-- 25 +minetest.register_biome({ + name = "semi-tropical_forest", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 3, + node_stone = "default:stone", + y_min = 4, + y_max = 31000, + heat_point = 72, + humidity_point = 61, +}) + +-- 26 +minetest.register_biome({ + name = "rainforest", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 4, + node_stone = "default:stone", + y_min = 1, + y_max = 31000, + heat_point = 89, + humidity_point = 76, +}) + +-- 27 +minetest.register_biome({ + name = "sandstone_desert", + node_top = "default:desert_sand", + depth_top = 1, + node_filler = "default:desert_sand", + depth_filler = 1, + node_stone = "default:sandstone", + y_min = 6, + y_max = 31000, + heat_point = 60, + humidity_point = 0, +}) + +-- 28 +minetest.register_biome({ + name = "low_deciduous_forest", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 2, + node_stone = "default:stone", + y_min = 6, + y_max = 31000, + heat_point = 40, + humidity_point = 40, +}) + +-- 29 +minetest.register_biome({ + name = "hot_deciduous_forest", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 2, + node_stone = "default:stone", + y_min = 5, + y_max = 31000, + heat_point = 61, + humidity_point = 58, +}) + +-- 30 +minetest.register_biome({ + name = "hot_swamp", + node_top = "default:dirt_with_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 4, + node_stone = "default:stone", + y_min = 1, + y_max = 31000, + heat_point = 83, + humidity_point = 116, +}) diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..0028f11 --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +name = biomes diff --git a/sea_biomes.lua b/sea_biomes.lua new file mode 100644 index 0000000..71684e8 --- /dev/null +++ b/sea_biomes.lua @@ -0,0 +1,53 @@ +-- 1 +minetest.register_biome({ + name = "pack_ice", + node_dust = "default:snow", + node_top = "default:gravel", + depth_top = 1, + node_stone = "default:stone", + node_water_top = "default:ice", + depth_water_top = 5, + node_river_water = "default:ice", + y_min = -112, + y_max = -6, + heat_point = -24, + humidity_point = 41, +}) + +-- 2 +minetest.register_biome({ + name = "cold_sea", + node_top = "default:gravel", + depth_top = 2, + node_stone = "default:stone", + y_min = -112, + y_max = -6, + heat_point = 20, + humidity_point = 47, +}) + +-- 3 +minetest.register_biome({ + name = "tempered_sea", + node_top = "default:sand", + depth_top = 2, + node_stone = "default:stone", + y_min = -112, + y_max = -6, + heat_point = 41, + humidity_point = 48, +}) + +-- 4 +minetest.register_biome({ + name = "hot_sea", + node_top = "default:sand", + depth_top = 1, + node_filler = "default:sand", + depth_filler = 2, + node_stone = "default:stone", + y_min = -112, + y_max = -6, + heat_point = 89, + humidity_point = 51, +}) diff --git a/textures/biomes_mud.png b/textures/biomes_mud.png new file mode 100644 index 0000000..f1fefad Binary files /dev/null and b/textures/biomes_mud.png differ