]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/main/mapgen.lua
remove server debug
[Crafter.git] / mods / main / mapgen.lua
index 47de1ffa7d637872e660d8ef5f0c013cf3a8faa9..2507fe735b4051ca7627da4b3d3b113871fd65b5 100644 (file)
@@ -1,14 +1,13 @@
-print("Initializing mapgen")
 minetest.register_alias("mapgen_stone", "main:stone")
 minetest.register_alias("mapgen_dirt", "main:dirt")
 minetest.register_alias("mapgen_dirt_with_grass", "main:grass")
-minetest.register_alias("mapgen_water_source", "main:waterSource")
+minetest.register_alias("mapgen_water_source", "main:water")
+minetest.register_alias("mapgen_river_water_source", "main:water")
 minetest.register_alias("mapgen_sand", "main:sand")
 minetest.register_alias("mapgen_tree", "main:tree")
 minetest.register_alias("mapgen_leaves", "main:leaves")
+minetest.register_alias("mapgen_apple", "main:leaves")
 
-
-print("Initializing biomes")
 --[[
 minetest.register_biome({
                name = "greenhills",
@@ -29,79 +28,161 @@ minetest.register_biome({
 ]]--
 
 minetest.register_biome({
-               name = "grassland",
-               node_top = "main:grass",
-               depth_top = 1,
+       name = "grassland",
+       node_top = "main:grass",
+       depth_top = 1,
+       node_filler = "main:dirt",
+       depth_filler = 3,
+       node_riverbed = "main:dirt",
+       depth_riverbed = 2,
+       node_dungeon = "main:cobble",
+       node_dungeon_alt = "main:mossy_cobble",
+       node_dungeon_stair = "stairs:mossy_cobble_stair",
+       y_max = 256,
+       y_min = 6,
+       heat_point = 50,
+       humidity_point = 35,
+})
+--[[
+minetest.register_biome({
+               name = "snowland",
+               node_dust = "weather:snow",
+               node_top = "weather:snow_block",
+               depth_top = 4,
+               node_stone = "main:ice_mapgen",
                node_filler = "main:dirt",
-               depth_filler = 3,
-               node_riverbed = "main:dirt",
+               depth_filler = 0,
+               node_riverbed = "main:sand",
                depth_riverbed = 2,
-               --node_dungeon = "default:cobble",
-               --node_dungeon_alt = "default:mossycobble",
-               --node_dungeon_stair = "stairs:stair_cobble",
+               node_dungeon = "main:cobble",
+               node_dungeon_alt = "main:mossy_cobble",
+               node_dungeon_stair = "stairs:mossy_cobble_stair",
                y_max = 31000,
-               y_min = 6,
-               heat_point = 50,
-               humidity_point = 35,
+               y_min = 4,
+               heat_point = 25,
+               humidity_point = 70,
        })
 
-
 minetest.register_biome({
-               name = "sandDunes",
+               name = "snowcean",
+               node_dust = "main:snow",
                node_top = "main:sand",
                depth_top = 1,
+               node_stone = "main:ice_mapgen",
                node_filler = "main:sand",
-               depth_filler = 2,
+               depth_filler = 3,
                node_riverbed = "main:sand",
                depth_riverbed = 2,
-               --node_dungeon = "default:cobble",
-               --node_dungeon_alt = "default:mossycobble",
-               --node_dungeon_stair = "stairs:stair_cobble",
+               node_cave_liquid = "main:water",
+               node_dungeon = "main:cobble",
+               node_dungeon_alt = "main:mossy_cobble",
+               node_dungeon_stair = "main:mossy_cobble_stair",
                vertical_blend = 1,
-               y_max = 5,
-               y_min = 4,
-               heat_point = 50,
-               humidity_point = 35,
+               y_max = 3,
+               y_min = -255,
+               heat_point = 25,
+               humidity_point = 70,
        })
-
 minetest.register_biome({
-               name = "beach",
-               node_top = "main:sand",
+               name = "icesheet",
+               node_dust = "weather:snow",
+               node_top = "weather:snow_block",
                depth_top = 1,
-               node_filler = "main:sand",
+               node_filler = "weather:snow_block",
                depth_filler = 3,
-               node_riverbed = "main:sand",
+               node_stone = "main:ice_mapgen",
+               node_water_top = "main:ice_mapgen",
+               depth_water_top = 10,
+               node_river_water = "main:ice_mapgen",
+               node_riverbed = "main:gravel",
                depth_riverbed = 2,
-               node_cave_liquid = "main:waterSource",
-               --node_dungeon = "main:cobble",
-               --node_dungeon_alt = "default:mossycobble",
-               --node_dungeon_stair = "stairs:stair_cobble",
-               y_max = 3,
-               y_min = -255,
-               heat_point = 50,
-               humidity_point = 35,
+               node_dungeon = "main:ice_mapgen",
+               node_dungeon_stair = "stairs:glass_stair",
+               y_max = 31000,
+               y_min = -8,
+               heat_point = 0,
+               humidity_point = 73,
        })
-       
-       
-print("Initializing Decorations!")
+]]--
+minetest.register_biome({
+       name = "sandDunes",
+       node_top = "main:sand",
+       depth_top = 1,
+       node_filler = "main:sand",
+       depth_filler = 2,
+       node_riverbed = "main:sand",
+       depth_riverbed = 2,
+       node_dungeon = "main:cobble",
+       node_dungeon_alt = "main:mossy_cobble",
+       node_dungeon_stair = "stairs:mossy_cobble_stair",
+       vertical_blend = 1,
+       y_max = 5,
+       y_min = 4,
+       heat_point = 50,
+       humidity_point = 35,
+})
+
+minetest.register_biome({
+       name = "beach",
+       node_top = "main:sand",
+       depth_top = 1,
+       node_filler = "main:sand",
+       depth_filler = 3,
+       node_riverbed = "main:sand",
+       depth_riverbed = 2,
+       node_cave_liquid = "main:water",
+       node_dungeon = "main:cobble",
+       node_dungeon_alt = "main:mossy_cobble",
+       node_dungeon_stair = "stairs:mossy_cobble_stair",
+       y_max = 3,
+       y_min = -255,
+       heat_point = 50,
+       humidity_point = 35,
+})
 
+--[[
 minetest.register_decoration({
-               name = "main:tree",
-               deco_type = "schematic",
-               place_on = {"main:grass"},
-               sidelen = 16,
-               noise_params = {
-                       offset = 0.024,
-                       scale = 0.015,
-                       spread = {x = 250, y = 250, z = 250},
-                       seed = 2,
-                       octaves = 3,
-                       persist = 0.66
-               },
-               biomes = {"grassland"},
-               y_max = 31000,
-               y_min = 0,
-               schematic = treeSchematic,
-               flags = "place_center_x, place_center_z",
-               rotation = "random",
-       })
+       name = "main:tree",
+       deco_type = "simple",
+       place_on = {"main:grass"},
+       sidelen = 16,
+       fill_ratio = 0.005,
+       biomes = {"grassland"},
+       y_max = 31000,
+       y_min = 0,
+       --schematic = treeSchematic,
+       --flags = "place_center_x, place_center_z, force_placement",
+       --rotation = "random",
+       decoration = "main:tree",
+       height = 4,
+       height_max = 6,
+})
+]]--
+minetest.register_decoration({
+       name = "main:tree_big",
+       deco_type = "schematic",
+       place_on = {"main:grass"},
+       sidelen = 16,
+       fill_ratio = 0.0025,
+       biomes = {"grassland"},
+       y_max = 31000,
+       y_min = 0,
+       schematic = tree_big,
+       flags = "place_center_x, place_center_z",
+       rotation = "random",
+       place_offset_y = 1,
+})
+minetest.register_decoration({
+       name = "main:tree_small",
+       deco_type = "schematic",
+       place_on = {"main:grass"},
+       sidelen = 16,
+       fill_ratio = 0.0025,
+       biomes = {"grassland"},
+       y_max = 31000,
+       y_min = 0,
+       schematic = tree_small,
+       flags = "place_center_x, place_center_z",
+       rotation = "random",
+       place_offset_y = 1,
+})