]> git.lizzy.rs Git - Crafter.git/blob - mods/main/mapgen.lua
Add in running, sneaking, hurt sound
[Crafter.git] / mods / main / mapgen.lua
1 print("Initializing mapgen")
2 minetest.register_alias("mapgen_stone", "main:stone")
3 minetest.register_alias("mapgen_dirt", "main:dirt")
4 minetest.register_alias("mapgen_dirt_with_grass", "main:grass")
5 minetest.register_alias("mapgen_water_source", "main:waterSource")
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
10
11 print("Initializing biomes")
12 --[[
13 minetest.register_biome({
14                 name = "greenhills",
15                 node_top = " main:grass",
16                 depth_top = 1,
17                 node_filler = "main:grass",
18                 depth_filler = 3,
19                 --node_riverbed = "default:sand",
20                 --depth_riverbed = 2,
21                 --node_dungeon = "default:cobble",
22                 --node_dungeon_alt = "default:mossycobble",
23                 --node_dungeon_stair = "stairs:stair_cobble",
24                 y_max = 31000,
25                 y_min = -31000,
26                 --heat_point = 50,
27                 --humidity_point = 35,
28         })
29 ]]--
30
31 minetest.register_biome({
32                 name = "grassland",
33                 node_top = "main:grass",
34                 depth_top = 1,
35                 node_filler = "main:dirt",
36                 depth_filler = 3,
37                 node_riverbed = "main:dirt",
38                 depth_riverbed = 2,
39                 --node_dungeon = "default:cobble",
40                 --node_dungeon_alt = "default:mossycobble",
41                 --node_dungeon_stair = "stairs:stair_cobble",
42                 y_max = 31000,
43                 y_min = 6,
44                 heat_point = 50,
45                 humidity_point = 35,
46         })
47
48
49 minetest.register_biome({
50                 name = "sandDunes",
51                 node_top = "main:sand",
52                 depth_top = 1,
53                 node_filler = "main:sand",
54                 depth_filler = 2,
55                 node_riverbed = "main:sand",
56                 depth_riverbed = 2,
57                 --node_dungeon = "default:cobble",
58                 --node_dungeon_alt = "default:mossycobble",
59                 --node_dungeon_stair = "stairs:stair_cobble",
60                 vertical_blend = 1,
61                 y_max = 5,
62                 y_min = 4,
63                 heat_point = 50,
64                 humidity_point = 35,
65         })
66
67 minetest.register_biome({
68                 name = "beach",
69                 node_top = "main:sand",
70                 depth_top = 1,
71                 node_filler = "main:sand",
72                 depth_filler = 3,
73                 node_riverbed = "main:sand",
74                 depth_riverbed = 2,
75                 node_cave_liquid = "main:waterSource",
76                 --node_dungeon = "main:cobble",
77                 --node_dungeon_alt = "default:mossycobble",
78                 --node_dungeon_stair = "stairs:stair_cobble",
79                 y_max = 3,
80                 y_min = -255,
81                 heat_point = 50,
82                 humidity_point = 35,
83         })
84         
85         
86 print("Initializing Decorations!")
87
88 minetest.register_decoration({
89                 name = "main:tree",
90                 deco_type = "schematic",
91                 place_on = {"main:grass"},
92                 sidelen = 16,
93                 noise_params = {
94                         offset = 0.024,
95                         scale = 0.015,
96                         spread = {x = 250, y = 250, z = 250},
97                         seed = 2,
98                         octaves = 3,
99                         persist = 0.66
100                 },
101                 biomes = {"grassland"},
102                 y_max = 31000,
103                 y_min = 0,
104                 schematic = treeSchematic,
105                 flags = "place_center_x, place_center_z",
106                 rotation = "random",
107         })