1 2 3-- TODO: remake schematics/*.mts files and remove aliases: 4core.register_alias("base:jungletree", "default:jungletree") 5core.register_alias("base:leaves", "default:leaves") 6core.register_alias("base:dirt", "default:dirt") 7core.register_alias("base:tree", "default:tree") 8core.register_alias("base:sand", "default:sand") 9core.register_alias("base:stone", "default:stone") 10 11 12core.register_biome({ 13 name = "default_normal", 14 15 height_min = 3, 16 height_max = 40, 17 heat_point = 5.0, 18 humidity_point = 40.0, 19}) 20 21core.register_biome({ 22 name = "default_forest", 23 24 height_min = 3, 25 height_max = 3000, 26 heat_point = 5.0, 27 humidity_point = 55.0, 28}) 29 30core.register_biome({ 31 name = "default_jungle", 32 33 height_min = 3, 34 height_max = 2500, 35 heat_point = 25.0, 36 humidity_point = 70.0, 37}) 38 39core.register_biome({ 40 name = "default_firforest", 41 42 height_min = 3, 43 height_max = 1500, 44 heat_point = -15.0, 45 humidity_point = 55.0, 46}) 47 48core.register_biome({ 49 name = "default_highland", 50 51 height_min = 200, 52 height_max = 31000, 53 heat_point = 5.0, 54 humidity_point = 40.0, 55}) 56 57core.register_biome({ 58 name = "default_ocean_sand", 59 60 node_top = "base:sand", 61 depth_top = 3, 62 node_filler = "base:stone", 63 depth_filler = 0, 64 65 height_min = -31000, 66 height_max = 2, 67 heat_point = 5.0, 68 humidity_point = 40.0, 69}) 70 71core.register_biome({ 72 name = "default_ocean_dirt", 73 74 height_min = -31000, 75 height_max = 2, 76 heat_point = -15.0, 77 humidity_point = 40.0, 78}) 79 80core.register_biome({ 81 name = "default_desert", 82 83 node_top = "base:sand", 84 depth_top = 20, 85 node_filler = "base:stone", 86 87 height_min = 3, 88 height_max = 300, 89 heat_point = 55.0, 90 humidity_point = 0.0, 91}) 92 93 94 95core.register_biome({ 96 name = "Ocean", 97 98 node_top = "default:sand", 99 depth_top = 3, 100 node_filler = "default:stone", 101 depth_filler = 0, 102 103 height_min = -31000, 104 height_max = 0, 105 heat_point = 5.0, 106 humidity_point = 40.0 107}) 108 109core.register_biome({ 110 name = "Gravel Ocean", 111 112 node_top = "default:gravel", 113 depth_top = 3, 114 node_filler = "default:stone", 115 depth_filler = 0, 116 117 node_dust_water = "default:ice", 118 119 height_min = -31000, 120 height_max = 0, 121 heat_point = -15.0, 122 humidity_point = 60.0 123}) 124 125core.register_biome({ 126 name = "Beach", 127 128 node_top = "default:sand", 129 depth_top = 3, 130 node_filler = "default:sandstone", 131 depth_filler = 3, 132 133 height_min = 1, 134 height_max = 5, 135 heat_point = 15.0, 136 humidity_point = 10.0 137}) 138 139core.register_biome({ 140 name = "Gravel Beach", 141 142 node_top = "default:gravel", 143 depth_top = 2, 144 node_filler = "default:stone", 145 depth_filler = 0, 146 147 node_dust = "default:snow", 148 node_dust_water = "default:ice", 149 150 height_min = 1, 151 height_max = 3, 152 heat_point = -10.0, 153 humidity_point = 60.0 154}) 155 156core.register_biome({ 157 name = "Snow Plains", 158 159 node_dust = "default:snow", 160 node_dust_water = "default:ice", 161 162 height_min = 1, 163 height_max = 20, 164 heat_point = -10.0, 165 humidity_point = 50.0 166}) 167 168core.register_biome({ 169 name = "Plains", 170 171 height_min = 1, 172 height_max = 40, 173 heat_point = 5.0, 174 humidity_point = 50.0 175}) 176 177core.register_biome({ 178 name = "Hills", 179 180 height_min = 21, 181 height_max = 400, 182 heat_point = 5.0, 183 humidity_point = 50.0 184}) 185 186core.register_biome({ 187 name = "Snow Hills", 188 189 node_dust = "default:snow", 190 node_dust_water = "default:ice", 191 192 height_min = 21, 193 height_max = 300, 194 heat_point = -10.0, 195 humidity_point = 50.0 196}) 197 198core.register_biome({ 199 name = "Extreme Hills", 200 201 height_min = 41, 202 height_max = 5000, 203 heat_point = 5.0, 204 humidity_point = 50.0 205}) 206 207core.register_biome({ 208 name = "Desert", 209 210 node_top = "default:desert_sand", 211 depth_top = 3, 212 node_filler = "default:desert_stone", 213 depth_filler = 10, 214 215 height_min = 3, 216 height_max = 35, 217 heat_point = 55.0, 218 humidity_point = 0.0 219}) 220 221 222--trees 223--[[ TODO 224core.register_decoration({ 225 deco_type = "schematic", 226 place_on = "default:dirt_with_grass", 227 sidelen = 8, 228 schematic = "treewprob.mts", 229 flags = "place_center_x, place_center_z", 230 noise_params = { 231 offset = 1/120, 232 scale = 0.04, 233 spread = {x=125, y=125, z=125}, 234 seed = 2, 235 octaves = 4, 236 persist = 0.66 237 } 238}) 239]] 240 241core.register_decoration({ 242 deco_type = "schematic", 243 place_on = "default:dirt_with_grass", 244 sidelen = 16, 245 fill_ratio = 0.005, 246 biomes = {"default_normal"}, 247 schematic = core.get_modpath("default").."/schematics/base_tree.mts", 248 flags = "place_center_x, place_center_z", 249}) 250 251core.register_decoration({ 252 deco_type = "schematic", 253 place_on = "default:dirt_with_grass", 254 sidelen = 8, 255 fill_ratio = 0.1, 256 biomes = {"default_forest"}, 257 schematic = core.get_modpath("default").."/schematics/base_tree.mts", 258 flags = "place_center_x, place_center_z", 259}) 260 261core.register_decoration({ 262 deco_type = "schematic", 263 place_on = "default:dirt_with_grass", 264 sidelen = 8, 265 fill_ratio = 0.2, 266 biomes = {"default_jungle"}, 267 schematic = core.get_modpath("default").."/schematics/base_jungletree.mts", 268 flags = "place_center_x, place_center_z", 269}) 270 271core.register_decoration({ 272 deco_type = "schematic", 273 place_on = "default:dirt_with_grass", 274 sidelen = 16, 275 fill_ratio = 0.02, 276 biomes = {"default_firforest"}, 277 schematic = core.get_modpath("default").."/schematics/base_fir.mts", 278 flags = "place_center_x, place_center_z", 279}) 280 281--papyrus 282core.register_decoration({ 283 deco_type = "simple", 284 place_on = "default:dirt_with_grass", 285 sidelen = 8, 286 decoration = "default:papyrus", 287 height = 2, 288 height_max = 4, 289 noise_params = { 290 offset = 0, 291 scale = 0.3, 292 spread = {x=100, y=100, z=100}, 293 seed = 354, 294 octaves = 3, 295 persist = 0.7 296 }, 297 spawn_by = "default:water_source", 298 num_spawn_by = 1 299}) 300 301--cactuses 302core.register_decoration({ 303 deco_type = "simple", 304 place_on = "default:desert_sand", 305 sidelen = 4, 306 decoration = "default:cactus", 307 height = 3, 308 height_max = 4, 309 noise_params = { 310 offset = 0, 311 scale = 1 / 25, 312 spread = {x=100, y=100, z=100}, 313 seed = 230, 314 octaves = 3, 315 persist = 0.6 316 } 317}) 318 319--grass 320core.register_decoration({ 321 deco_type = "simple", 322 place_on = "default:dirt_with_grass", 323 sidelen = 4, 324 decoration = { 325 "default:grass_1", 326 "default:grass_2", 327 "default:grass_3", 328 "default:grass_4", 329 "default:grass_5" 330 }, 331 height = 1, 332 noise_params = { 333 offset = 1 / 4, 334 scale = 1 / 6, -- originally ^3 as well... 335 spread = {x=100, y=100, z=100}, 336 seed = 329, 337 octaves = 3, 338 persist = 0.6 339 } 340}) 341 342--desert shrubs 343core.register_decoration({ 344 deco_type = "simple", 345 place_on = "default:desert_sand", 346 sidelen = 4, 347 decoration = "default:dry_shrub", 348 height = 1, 349 noise_params = { 350 offset = 0, 351 scale = 1 / 12, -- originally ^3 as well... 352 spread = {x=100, y=100, z=100}, 353 seed = 329, 354 octaves = 3, 355 persist = 0.6 356 } 357}) 358