Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.27 KB | None | 0 0
  1.  
  2. minetest.register_biome({
  3.     name           = "Ocean",
  4.     terrain_type   = "normal",
  5.  
  6.     top_node       = "default:sand",
  7.     top_depth      = 2,
  8.     filler_node    = "default:stone",
  9.     filler_height  = 0,
  10.  
  11.     height_min     = -31000,
  12.     height_max     = -2,
  13.     heat_point     = 40.0,
  14.     humidity_point = 40.0
  15. })
  16.  
  17. minetest.register_biome({
  18.     name           = "Gravel Ocean",
  19.     terrain_type   = "normal",
  20.  
  21.     top_node       = "default:gravel",
  22.     top_depth      = 2,
  23.     filler_node    = "default:stone",
  24.     filler_height  = 0,
  25.  
  26.     height_min     = -31000,
  27.     height_max     = -2,
  28.     heat_point     = 0.0,
  29.     humidity_point = 60.0
  30. })
  31.  
  32. minetest.register_biome({
  33.     name           = "Beach",
  34.     terrain_type   = "normal",
  35.  
  36.     top_node       = "default:sand",
  37.     top_depth      = 2,
  38.     filler_node    = "default:sandstone",
  39.     filler_height  = -10,
  40.  
  41.     height_min     = -1,
  42.     height_max     = 2,
  43.     heat_point     = 50.0,
  44.     humidity_point = 10.0
  45. })
  46.  
  47. minetest.register_biome({
  48.     name           = "Gravel Beach",
  49.     terrain_type   = "normal",
  50.  
  51.     top_node       = "default:gravel",
  52.     top_depth      = 2,
  53.     filler_node    = "default:stone",
  54.     filler_height  = 0,
  55.  
  56.     height_min     = -1,
  57.     height_max     = 2,
  58.     heat_point     = -10.0,
  59.     humidity_point = 60.0
  60. })
  61.  
  62. minetest.register_biome({
  63.     name           = "Oceanside",
  64.     terrain_type   = "normal",
  65.  
  66.     top_node       = "default:dirt",
  67.     top_depth      = 2,
  68.     filler_node    = "default:stone",
  69.     filler_height  = 0,
  70.  
  71.     height_min     = -1,
  72.     height_max     = 2,
  73.     heat_point     = 30.0,
  74.     humidity_point = 30.0
  75. })
  76.  
  77.  
  78. minetest.register_biome({
  79.     name           = "Snow Plains",
  80.     terrain_type   = "normal",
  81.  
  82.     top_node       = "default:dirt_with_snow",
  83.     top_depth      = 2,
  84.     filler_node    = "default:stone",
  85.     filler_height  = -15,
  86.  
  87.     height_min     = 3,
  88.     height_max     = 20,
  89.     heat_point     = -10.0,
  90.     humidity_point = 50.0
  91. })
  92.  
  93. minetest.register_biome({
  94.     name           = "Plains",
  95.     terrain_type   = "normal",
  96.  
  97.     top_node       = "default:dirt",
  98.     top_depth      = 2,
  99.     filler_node    = "default:stone",
  100.     filler_height  = -15,
  101.  
  102.     height_min     = 3,
  103.     height_max     = 20,
  104.     heat_point     = 40.0,
  105.     humidity_point = 50.0
  106. })
  107.  
  108. minetest.register_biome({
  109.     name           = "Hills",
  110.     terrain_type   = "normal",
  111.  
  112.     top_node       = "default:dirt",
  113.     top_depth      = 2,
  114.     filler_node    = "default:stone",
  115.     filler_height  = -15,
  116.  
  117.     height_min     = 21,
  118.     height_max     = 40,
  119.     heat_point     = 40.0,
  120.     humidity_point = 50.0
  121. })
  122.  
  123. minetest.register_biome({
  124.     name           = "Snow Hills",
  125.     terrain_type   = "normal",
  126.  
  127.     top_node       = "default:dirt_with_snow",
  128.     top_depth      = 2,
  129.     filler_node    = "default:stone",
  130.     filler_height  = -15,
  131.  
  132.     height_min     = 21,
  133.     height_max     = 300,
  134.     heat_point     = -10.0,
  135.     humidity_point = 50.0
  136. })
  137.  
  138. minetest.register_biome({
  139.     name           = "Extreme Hills",
  140.     terrain_type   = "normal",
  141.  
  142.     top_node       = "default:dirt",
  143.     top_depth      = 2,
  144.     filler_node    = "default:stone",
  145.     filler_height  = -15,
  146.  
  147.     height_min     = 41,
  148.     height_max     = 300,
  149.     heat_point     = 40.0,
  150.     humidity_point = 40.0
  151. })
  152.  
  153. minetest.register_biome({
  154.     name           = "Desert",
  155.     terrain_type   = "normal",
  156.  
  157.     top_node       = "default:desert_sand",
  158.     top_depth      = 2,
  159.     filler_node    = "default:desert_stone",
  160.     filler_height  = -15,
  161.  
  162.     height_min     = 3,
  163.     height_max     = 15,
  164.     heat_point     = 90.0,
  165.     humidity_point = 0.0
  166. })
  167.  
  168. --trees
  169. minetest.register_decoration({
  170.     deco_type = "schematic",
  171.     place_on  = "default:dirt_with_grass",
  172.     sidelen   = 8,
  173.     schematic = "treewprob.mts",
  174.     flags     = "place_center_x, place_center_z",
  175.     noise_params = {
  176.         offset  = 0,
  177.         scale   = 0.033,
  178.         spread  = {x=125, y=125, z=125},
  179.         seed    = 2,
  180.         octaves = 4,
  181.         persist = 0.66
  182.     }
  183. })
  184.  
  185. --papyrus
  186. minetest.register_decoration({
  187.     deco_type  = "simple",
  188.     place_on   = "default:dirt_with_grass",
  189.     sidelen    = 8,
  190.     decoration = "default:papyrus",
  191.     height     = 2,
  192.     height_max = 4,
  193.     noise_params = {
  194.         offset  = -20 / 64,
  195.         scale   = 45 / 64,
  196.         spread  = {x=100, y=100, z=100},
  197.         seed    = 354,
  198.         octaves = 3,
  199.         persist = 0.7
  200.     },
  201.     spawn_by = "default:water_source",
  202.     num_spawn_by = 1
  203. })
  204.  
  205. --cactuses
  206. minetest.register_decoration({
  207.     deco_type  = "simple",
  208.     place_on   = "default:desert_sand",
  209.     sidelen    = 4,
  210.     decoration = "default:cactus",
  211.     height     = 3,
  212.     height_max = 4,
  213.     noise_params = {
  214.         offset  = -1 / 20,
  215.         scale   = 1 / 15,
  216.         spread  = {x=100, y=100, z=100},
  217.         seed    = 230,
  218.         octaves = 3,
  219.         persist = 0.6
  220.     }
  221. })
  222.  
  223. --grass
  224. minetest.register_decoration({
  225.     deco_type  = "simple",
  226.     place_on   = "default:dirt_with_grass",
  227.     sidelen    = 4,
  228.     decoration = {
  229.         "default:grass_1",
  230.         "default:grass_2",
  231.         "default:grass_3",
  232.         "default:grass_4",
  233.         "default:grass_5"
  234.     },
  235.     height      = 1,
  236.     noise_params = {
  237.         offset  = 0,
  238.         scale   = 3 / 16, -- originally ^3 as well...
  239.         spread  = {x=100, y=100, z=100},
  240.         seed    = 329,
  241.         octaves = 3,
  242.         persist = 0.6
  243.     }
  244. })
  245.  
  246. --desert shrubs
  247. minetest.register_decoration({
  248.     deco_type  = "simple",
  249.     place_on   = "default:desert_sand",
  250.     sidelen     = 4,
  251.     decoration = "default:dry_shrub",
  252.     height     = 1,
  253.     noise_params = {
  254.         offset  = 0,
  255.         scale   = 1 / 16, -- originally ^3 as well...
  256.         spread  = {x=100, y=100, z=100},
  257.         seed    = 329,
  258.         octaves = 3,
  259.         persist = 0.6
  260.     }
  261. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement