]> git.lizzy.rs Git - Crafter.git/blob - mods/main/mapgen.lua
remove server debug
[Crafter.git] / mods / main / mapgen.lua
1 minetest.register_alias("mapgen_stone", "main:stone")
2 minetest.register_alias("mapgen_dirt", "main:dirt")
3 minetest.register_alias("mapgen_dirt_with_grass", "main:grass")
4 minetest.register_alias("mapgen_water_source", "main:water")
5 minetest.register_alias("mapgen_river_water_source", "main:water")
6 minetest.register_alias("mapgen_sand", "main:sand")
7 minetest.register_alias("mapgen_tree", "main:tree")
8 minetest.register_alias("mapgen_leaves", "main:leaves")
9 minetest.register_alias("mapgen_apple", "main:leaves")
10
11 --[[
12 minetest.register_biome({
13                 name = "greenhills",
14                 node_top = " main:grass",
15                 depth_top = 1,
16                 node_filler = "main:grass",
17                 depth_filler = 3,
18                 --node_riverbed = "default:sand",
19                 --depth_riverbed = 2,
20                 --node_dungeon = "default:cobble",
21                 --node_dungeon_alt = "default:mossycobble",
22                 --node_dungeon_stair = "stairs:stair_cobble",
23                 y_max = 31000,
24                 y_min = -31000,
25                 --heat_point = 50,
26                 --humidity_point = 35,
27         })
28 ]]--
29
30 minetest.register_biome({
31         name = "grassland",
32         node_top = "main:grass",
33         depth_top = 1,
34         node_filler = "main:dirt",
35         depth_filler = 3,
36         node_riverbed = "main:dirt",
37         depth_riverbed = 2,
38         node_dungeon = "main:cobble",
39         node_dungeon_alt = "main:mossy_cobble",
40         node_dungeon_stair = "stairs:mossy_cobble_stair",
41         y_max = 256,
42         y_min = 6,
43         heat_point = 50,
44         humidity_point = 35,
45 })
46 --[[
47 minetest.register_biome({
48                 name = "snowland",
49                 node_dust = "weather:snow",
50                 node_top = "weather:snow_block",
51                 depth_top = 4,
52                 node_stone = "main:ice_mapgen",
53                 node_filler = "main:dirt",
54                 depth_filler = 0,
55                 node_riverbed = "main:sand",
56                 depth_riverbed = 2,
57                 node_dungeon = "main:cobble",
58                 node_dungeon_alt = "main:mossy_cobble",
59                 node_dungeon_stair = "stairs:mossy_cobble_stair",
60                 y_max = 31000,
61                 y_min = 4,
62                 heat_point = 25,
63                 humidity_point = 70,
64         })
65
66 minetest.register_biome({
67                 name = "snowcean",
68                 node_dust = "main:snow",
69                 node_top = "main:sand",
70                 depth_top = 1,
71                 node_stone = "main:ice_mapgen",
72                 node_filler = "main:sand",
73                 depth_filler = 3,
74                 node_riverbed = "main:sand",
75                 depth_riverbed = 2,
76                 node_cave_liquid = "main:water",
77                 node_dungeon = "main:cobble",
78                 node_dungeon_alt = "main:mossy_cobble",
79                 node_dungeon_stair = "main:mossy_cobble_stair",
80                 vertical_blend = 1,
81                 y_max = 3,
82                 y_min = -255,
83                 heat_point = 25,
84                 humidity_point = 70,
85         })
86 minetest.register_biome({
87                 name = "icesheet",
88                 node_dust = "weather:snow",
89                 node_top = "weather:snow_block",
90                 depth_top = 1,
91                 node_filler = "weather:snow_block",
92                 depth_filler = 3,
93                 node_stone = "main:ice_mapgen",
94                 node_water_top = "main:ice_mapgen",
95                 depth_water_top = 10,
96                 node_river_water = "main:ice_mapgen",
97                 node_riverbed = "main:gravel",
98                 depth_riverbed = 2,
99                 node_dungeon = "main:ice_mapgen",
100                 node_dungeon_stair = "stairs:glass_stair",
101                 y_max = 31000,
102                 y_min = -8,
103                 heat_point = 0,
104                 humidity_point = 73,
105         })
106 ]]--
107 minetest.register_biome({
108         name = "sandDunes",
109         node_top = "main:sand",
110         depth_top = 1,
111         node_filler = "main:sand",
112         depth_filler = 2,
113         node_riverbed = "main:sand",
114         depth_riverbed = 2,
115         node_dungeon = "main:cobble",
116         node_dungeon_alt = "main:mossy_cobble",
117         node_dungeon_stair = "stairs:mossy_cobble_stair",
118         vertical_blend = 1,
119         y_max = 5,
120         y_min = 4,
121         heat_point = 50,
122         humidity_point = 35,
123 })
124
125 minetest.register_biome({
126         name = "beach",
127         node_top = "main:sand",
128         depth_top = 1,
129         node_filler = "main:sand",
130         depth_filler = 3,
131         node_riverbed = "main:sand",
132         depth_riverbed = 2,
133         node_cave_liquid = "main:water",
134         node_dungeon = "main:cobble",
135         node_dungeon_alt = "main:mossy_cobble",
136         node_dungeon_stair = "stairs:mossy_cobble_stair",
137         y_max = 3,
138         y_min = -255,
139         heat_point = 50,
140         humidity_point = 35,
141 })
142
143 --[[
144 minetest.register_decoration({
145         name = "main:tree",
146         deco_type = "simple",
147         place_on = {"main:grass"},
148         sidelen = 16,
149         fill_ratio = 0.005,
150         biomes = {"grassland"},
151         y_max = 31000,
152         y_min = 0,
153         --schematic = treeSchematic,
154         --flags = "place_center_x, place_center_z, force_placement",
155         --rotation = "random",
156         decoration = "main:tree",
157         height = 4,
158         height_max = 6,
159 })
160 ]]--
161 minetest.register_decoration({
162         name = "main:tree_big",
163         deco_type = "schematic",
164         place_on = {"main:grass"},
165         sidelen = 16,
166         fill_ratio = 0.0025,
167         biomes = {"grassland"},
168         y_max = 31000,
169         y_min = 0,
170         schematic = tree_big,
171         flags = "place_center_x, place_center_z",
172         rotation = "random",
173         place_offset_y = 1,
174 })
175 minetest.register_decoration({
176         name = "main:tree_small",
177         deco_type = "schematic",
178         place_on = {"main:grass"},
179         sidelen = 16,
180         fill_ratio = 0.0025,
181         biomes = {"grassland"},
182         y_max = 31000,
183         y_min = 0,
184         schematic = tree_small,
185         flags = "place_center_x, place_center_z",
186         rotation = "random",
187         place_offset_y = 1,
188 })