]> git.lizzy.rs Git - Crafter.git/blob - mods/main/mapgen.lua
Fix trees missing part of trunk
[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_sand", "main:sand")
6 minetest.register_alias("mapgen_tree", "main:tree")
7 minetest.register_alias("mapgen_leaves", "main:leaves")
8 minetest.register_alias("mapgen_apple", "main:leaves")
9
10 --[[
11 minetest.register_biome({
12                 name = "greenhills",
13                 node_top = " main:grass",
14                 depth_top = 1,
15                 node_filler = "main:grass",
16                 depth_filler = 3,
17                 --node_riverbed = "default:sand",
18                 --depth_riverbed = 2,
19                 --node_dungeon = "default:cobble",
20                 --node_dungeon_alt = "default:mossycobble",
21                 --node_dungeon_stair = "stairs:stair_cobble",
22                 y_max = 31000,
23                 y_min = -31000,
24                 --heat_point = 50,
25                 --humidity_point = 35,
26         })
27 ]]--
28
29 minetest.register_biome({
30         name = "grassland",
31         node_top = "main:grass",
32         depth_top = 1,
33         node_filler = "main:dirt",
34         depth_filler = 3,
35         node_riverbed = "main:dirt",
36         depth_riverbed = 2,
37         node_dungeon = "main:cobble",
38         node_dungeon_alt = "main:mossy_cobble",
39         node_dungeon_stair = "stairs:mossy_cobble_stair",
40         y_max = 256,
41         y_min = 6,
42         heat_point = 50,
43         humidity_point = 35,
44 })
45 --[[
46 minetest.register_biome({
47                 name = "snowland",
48                 node_dust = "weather:snow",
49                 node_top = "weather:snow_block",
50                 depth_top = 4,
51                 node_stone = "main:ice_mapgen",
52                 node_filler = "main:dirt",
53                 depth_filler = 0,
54                 node_riverbed = "main:sand",
55                 depth_riverbed = 2,
56                 node_dungeon = "main:cobble",
57                 node_dungeon_alt = "main:mossy_cobble",
58                 node_dungeon_stair = "stairs:mossy_cobble_stair",
59                 y_max = 31000,
60                 y_min = 4,
61                 heat_point = 25,
62                 humidity_point = 70,
63         })
64
65 minetest.register_biome({
66                 name = "snowcean",
67                 node_dust = "main:snow",
68                 node_top = "main:sand",
69                 depth_top = 1,
70                 node_stone = "main:ice_mapgen",
71                 node_filler = "main:sand",
72                 depth_filler = 3,
73                 node_riverbed = "main:sand",
74                 depth_riverbed = 2,
75                 node_cave_liquid = "main:water",
76                 node_dungeon = "main:cobble",
77                 node_dungeon_alt = "main:mossy_cobble",
78                 node_dungeon_stair = "main:mossy_cobble_stair",
79                 vertical_blend = 1,
80                 y_max = 3,
81                 y_min = -255,
82                 heat_point = 25,
83                 humidity_point = 70,
84         })
85 minetest.register_biome({
86                 name = "icesheet",
87                 node_dust = "weather:snow",
88                 node_top = "weather:snow_block",
89                 depth_top = 1,
90                 node_filler = "weather:snow_block",
91                 depth_filler = 3,
92                 node_stone = "main:ice_mapgen",
93                 node_water_top = "main:ice_mapgen",
94                 depth_water_top = 10,
95                 node_river_water = "main:ice_mapgen",
96                 node_riverbed = "main:gravel",
97                 depth_riverbed = 2,
98                 node_dungeon = "main:ice_mapgen",
99                 node_dungeon_stair = "stairs:glass_stair",
100                 y_max = 31000,
101                 y_min = -8,
102                 heat_point = 0,
103                 humidity_point = 73,
104         })
105 ]]--
106 minetest.register_biome({
107         name = "sandDunes",
108         node_top = "main:sand",
109         depth_top = 1,
110         node_filler = "main:sand",
111         depth_filler = 2,
112         node_riverbed = "main:sand",
113         depth_riverbed = 2,
114         node_dungeon = "main:cobble",
115         node_dungeon_alt = "main:mossy_cobble",
116         node_dungeon_stair = "stairs:mossy_cobble_stair",
117         vertical_blend = 1,
118         y_max = 5,
119         y_min = 4,
120         heat_point = 50,
121         humidity_point = 35,
122 })
123
124 minetest.register_biome({
125         name = "beach",
126         node_top = "main:sand",
127         depth_top = 1,
128         node_filler = "main:sand",
129         depth_filler = 3,
130         node_riverbed = "main:sand",
131         depth_riverbed = 2,
132         node_cave_liquid = "main:water",
133         node_dungeon = "main:cobble",
134         node_dungeon_alt = "main:mossy_cobble",
135         node_dungeon_stair = "stairs:mossy_cobble_stair",
136         y_max = 3,
137         y_min = -255,
138         heat_point = 50,
139         humidity_point = 35,
140 })
141
142 minetest.register_decoration({
143         name = "main:tree",
144         deco_type = "schematic",
145         place_on = {"main:grass"},
146         sidelen = 16,
147         noise_params = {
148                 offset = 0.024,
149                 scale = 0.015,
150                 spread = {x = 250, y = 250, z = 250},
151                 seed = 2,
152                 octaves = 3,
153                 persist = 0.66
154         },
155         biomes = {"grassland"},
156         y_max = 31000,
157         y_min = 0,
158         schematic = treeSchematic,
159         flags = "place_center_x, place_center_z, force_placement",
160         rotation = "random",
161 })
162
163