1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240 |
- ------------------------------------------------------
- local grassland_on = {"nodes_nature:grassland_soil", "nodes_nature:grassland_soil_wet"}
- local marshland_on = {"nodes_nature:marshland_soil", "nodes_nature:marshland_soil_wet"}
- local highland_on = {"nodes_nature:highland_soil", "nodes_nature:highland_soil_wet"}
- local duneland_on = {"nodes_nature:duneland_soil", "nodes_nature:duneland_soil_wet"}
- local woodland_on = {"nodes_nature:woodland_soil", "nodes_nature:woodland_soil_wet"}
- local all_soils_on = {
- "nodes_nature:marshland_soil",
- "nodes_nature:marshland_soil_wet",
- "nodes_nature:grassland_soil",
- "nodes_nature:grassland_soil_wet",
- "nodes_nature:highland_soil",
- "nodes_nature:highland_soil_wet",
- "nodes_nature:duneland_soil",
- "nodes_nature:duneland_soil_wet",
- "nodes_nature:woodland_soil",
- "nodes_nature:woodland_soil_wet"
- }
- local lowland_ymax = 600
- local lowland_ymin = 1
- --------------------------------------
- --Schematics
- local s1 = { name = "nodes_nature:gemedi", param2 = 2 }
- local gemedi = {
- size = {y = 7, x = 1, z = 1},
- data = {
- s1, s1, s1, s1, s1, s1, s1
- },
- yslice_prob = {
- {ypos = 0, prob = 255},
- {ypos = 1, prob = 245},
- {ypos = 2, prob = 225},
- {ypos = 3, prob = 205},
- {ypos = 4, prob = 155},
- {ypos = 5, prob = 55},
- {ypos = 6, prob = 35},
- },
- }
- local s2 = { name = "nodes_nature:cana", param2 = 2 }
- local cana = {
- size = {y = 7, x = 1, z = 1},
- data = {
- s2, s2, s2, s2, s2, s2, s2
- },
- yslice_prob = {
- {ypos = 0, prob = 255},
- {ypos = 1, prob = 255},
- {ypos = 2, prob = 255},
- {ypos = 3, prob = 255},
- {ypos = 4, prob = 230},
- {ypos = 5, prob = 155},
- {ypos = 6, prob = 105},
- },
- }
- local s3 = { name = "nodes_nature:tiken", param2 = 2 }
- local tiken = {
- size = {y = 7, x = 1, z = 1},
- data = {
- s3, s3, s3, s3, s3, s3, s3
- },
- yslice_prob = {
- {ypos = 0, prob = 255},
- {ypos = 1, prob = 255},
- {ypos = 2, prob = 255},
- {ypos = 3, prob = 255},
- {ypos = 4, prob = 230},
- {ypos = 5, prob = 155},
- {ypos = 6, prob = 105},
- },
- }
- -----------------------------------------------------
- --OCEANS
- --kelp
- minetest.register_decoration({
- name = "nodes_nature:kelp",
- deco_type = "simple",
- place_on = {"nodes_nature:gravel", "nodes_nature:gravel_wet_salty"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 0.3,
- spread = {x = 64, y = 64, z = 64},
- seed = 82112,
- octaves = 3,
- persist = 0.8
- },
- y_max = -7,
- y_min = -15,
- flags = "force_placement",
- decoration = "nodes_nature:kelp",
- param2 = 48,
- param2_max = 96,
- })
- --seagrass
- minetest.register_decoration({
- name = "nodes_nature:seagrass",
- deco_type = "simple",
- place_on = {"nodes_nature:sand", "nodes_nature:sand_wet_salty"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.4,
- spread = {x = 32, y = 32, z = 32},
- seed = 11312,
- octaves = 3,
- persist = 0.8
- },
- y_max = -2,
- y_min = -5,
- flags = "force_placement",
- decoration = "nodes_nature:seagrass",
- param2 = 16,
- })
- --sea lettuce
- minetest.register_decoration({
- name = "nodes_nature:sea_lettuce",
- deco_type = "simple",
- place_on = {"nodes_nature:silt", "nodes_nature:silt_wet_salty"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.4,
- spread = {x = 32, y = 32, z = 32},
- seed = 84322,
- octaves = 3,
- persist = 0.8
- },
- y_max = -2,
- y_min = -5,
- flags = "force_placement",
- decoration = "nodes_nature:sea_lettuce",
- param2 = 16,
- })
- -----------------------------------------------------
- --maraka in grassland
- minetest.register_decoration({
- name = "nodes_nature:maraka_tree",
- deco_type = "schematic",
- place_on = grassland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.0007,
- spread = {x = 250, y = 250, z = 250},
- seed = 222,
- octaves = 3,
- persist = 0.7
- },
- y_max = 22,
- y_min = lowland_ymin,
- schematic = minetest.get_modpath("mapgen") .. "/schematics/maraka_tree.mts",
- place_offset_y = -3,
- flags = "place_center_x, place_center_z",
- rotation = "random",
- })
- --maraka in woodland
- minetest.register_decoration({
- name = "nodes_nature:maraka_tree2",
- deco_type = "schematic",
- place_on =woodland_on,
- sidelen = 80,
- fill_ratio = 0.006,
- y_max = 40,
- y_min = lowland_ymin,
- schematic = minetest.get_modpath("mapgen") .. "/schematics/maraka_tree.mts",
- place_offset_y = -3,
- flags = "place_center_x, place_center_z",
- rotation = "random",
- })
- minetest.register_decoration({
- name = "nodes_nature:tangkal_tree_old",
- deco_type = "schematic",
- place_on =woodland_on,
- sidelen = 80,
- fill_ratio = 0.0009,
- y_max = 25,
- y_min = lowland_ymin,
- schematic = minetest.get_modpath("mapgen") .. "/schematics/tangkal_old.mts",
- place_offset_y = -5,
- flags = "place_center_x, place_center_z",
- rotation = "random",
- })
- --tangkal in woodland
- minetest.register_decoration({
- name = "nodes_nature:tangkal_tree",
- deco_type = "schematic",
- place_on =woodland_on,
- sidelen = 80,
- fill_ratio = 0.0007,
- y_max = 25,
- y_min = lowland_ymin,
- schematic = minetest.get_modpath("mapgen") .. "/schematics/tangkal_tree.mts",
- place_offset_y = -5,
- flags = "place_center_x, place_center_z",
- rotation = "random",
- })
- minetest.register_decoration({
- name = "nodes_nature:tangkal_tree_young",
- deco_type = "schematic",
- place_on =woodland_on,
- sidelen = 80,
- fill_ratio = 0.0005,
- y_max = 25,
- y_min = lowland_ymin,
- schematic = minetest.get_modpath("mapgen") .. "/schematics/tangkal_young.mts",
- place_offset_y = -3,
- flags = "place_center_x, place_center_z",
- rotation = "random",
- })
- -------------------------------
- --Fills
- -- Sediment
- minetest.register_decoration({
- name = "nodes_nature:gravel",
- deco_type = "simple",
- place_on = {"group:sand", "nodes_nature:silt"},
- sidelen = 4,
- noise_params = {
- offset = -0.8,
- scale = 2.0,
- spread = {x = 100, y = 100, z = 100},
- seed = 53995,
- octaves = 3,
- persist = 1.0
- },
- y_max = 1,
- y_min = -1,
- decoration = "nodes_nature:gravel",
- spawn_by = "group:water",
- num_spawn_by = 1,
- place_offset_y = -1,
- flags = "force_placement",
- })
- --wet sediments in low points
- minetest.register_decoration({
- name = "nodes_nature:loam_wet",
- deco_type = "simple",
- place_on = {"nodes_nature:loam"},
- sidelen = 4,
- noise_params = {
- offset = -0.4,
- scale = 3.0,
- spread = {x = 32, y = 32, z = 32},
- seed = 7995,
- octaves = 3,
- persist = 1.0
- },
- y_max = 9,
- y_min = 0,
- decoration = "nodes_nature:loam_wet",
- place_offset_y = -1,
- flags = "force_placement",
- })
- minetest.register_decoration({
- name = "nodes_nature:clay_wet",
- deco_type = "simple",
- place_on = {"nodes_nature:clay"},
- sidelen = 4,
- noise_params = {
- offset = -0.4,
- scale = 3.0,
- spread = {x = 32, y = 32, z = 32},
- seed = 7995,
- octaves = 3,
- persist = 1.0
- },
- y_max = 9,
- y_min = 0,
- decoration = "nodes_nature:clay_wet",
- place_offset_y = -1,
- flags = "force_placement",
- })
- minetest.register_decoration({
- name = "nodes_nature:silt_wet",
- deco_type = "simple",
- place_on = {"nodes_nature:silt"},
- sidelen = 4,
- noise_params = {
- offset = -0.4,
- scale = 3.0,
- spread = {x = 32, y = 32, z = 32},
- seed = 7995,
- octaves = 3,
- persist = 1.0
- },
- y_max = 9,
- y_min = 0,
- decoration = "nodes_nature:silt_wet",
- place_offset_y = -1,
- flags = "force_placement",
- })
- minetest.register_decoration({
- name = "nodes_nature:sand_wet",
- deco_type = "simple",
- place_on = {"nodes_nature:sand"},
- sidelen = 4,
- noise_params = {
- offset = -0.4,
- scale = 3.0,
- spread = {x = 32, y = 32, z = 32},
- seed = 7995,
- octaves = 3,
- persist = 1.0
- },
- y_max = 9,
- y_min = 0,
- decoration = "nodes_nature:sand_wet",
- place_offset_y = -1,
- flags = "force_placement",
- })
- minetest.register_decoration({
- name = "nodes_nature:gravel_wet",
- deco_type = "simple",
- place_on = {"nodes_nature:gravel"},
- sidelen = 4,
- noise_params = {
- offset = -0.4,
- scale = 3.0,
- spread = {x = 32, y = 32, z = 32},
- seed = 7995,
- octaves = 3,
- persist = 1.0
- },
- y_max = 9,
- y_min = 0,
- decoration = "nodes_nature:gravel_wet",
- place_offset_y = -1,
- flags = "force_placement",
- })
- ------------------------------
- --Grassland
- minetest.register_decoration({
- name = "nodes_nature:gemedi",
- deco_type = "schematic",
- place_on = grassland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 1,
- spread = {x = 128, y = 128, z = 128},
- seed = 998,
- octaves = 3,
- persist = 0.8
- },
- y_max = 10,
- y_min = lowland_ymin,
- schematic = gemedi,
- })
- minetest.register_decoration({
- name = "nodes_nature:sari",
- deco_type = "simple",
- place_on = grassland_on,
- sidelen = 80,
- fill_ratio = 0.2,
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:sari",
- param2 = 2,
- })
- minetest.register_decoration({
- name = "nodes_nature:gitiri",
- deco_type = "simple",
- place_on = grassland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.08,
- spread = {x = 32, y = 32, z = 32},
- seed = 1001,
- octaves = 3,
- persist = 0.6
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:gitiri",
- param2 = 2,
- })
- minetest.register_decoration({
- name = "nodes_nature:tikusati",
- deco_type = "simple",
- place_on = grassland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.001,
- spread = {x = 100, y = 100, z = 100},
- seed = 1002,
- octaves = 3,
- persist = 0.5
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:tikusati",
- param2 = 2,
- })
- minetest.register_decoration({
- name = "nodes_nature:wiha",
- deco_type = "simple",
- place_on = grassland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.002,
- spread = {x = 32, y = 32, z = 32},
- seed = 1003,
- octaves = 3,
- persist = 0.5
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:wiha",
- param2 = 4,
- })
- minetest.register_decoration({
- name = "nodes_nature:hakimi",
- deco_type = "simple",
- place_on = grassland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.001,
- spread = {x = 100, y = 100, z = 100},
- seed = 1004,
- octaves = 3,
- persist = 0.5
- },
- max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:hakimi",
- param2 = 3,
- })
- minetest.register_decoration({
- name = "nodes_nature:nebiyi",
- deco_type = "simple",
- place_on = grassland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.001,
- spread = {x = 100, y = 100, z = 100},
- seed = 1005,
- octaves = 3,
- persist = 0.5
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:nebiyi",
- param2 = 1,
- })
- minetest.register_decoration({
- name = "nodes_nature:zufani",
- deco_type = "simple",
- place_on = grassland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.002,
- spread = {x = 32, y = 32, z = 32},
- seed = 1006,
- octaves = 3,
- persist = 0.5
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:zufani",
- param2 = 2,
- })
- ------------------------------
- --Marshland
- minetest.register_decoration({
- name = "nodes_nature:cana",
- deco_type = "schematic",
- place_on = marshland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 1,
- spread = {x = 16, y = 16, z = 16},
- seed = 578,
- octaves = 3,
- persist = 0.7
- },
- y_max = 5,
- y_min = lowland_ymin,
- schematic = cana,
- })
- minetest.register_decoration({
- name = "nodes_nature:tanai",
- deco_type = "simple",
- place_on = marshland_on,
- sidelen = 80,
- fill_ratio = 0.3,
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:tanai",
- param2 = 4,
- })
- minetest.register_decoration({
- name = "nodes_nature:galanta",
- deco_type = "simple",
- place_on = marshland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.002,
- spread = {x = 32, y = 32, z = 32},
- seed = 153,
- octaves = 3,
- persist = 0.5
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:galanta",
- param2 = 4,
- })
- minetest.register_decoration({
- name = "nodes_nature:marbhan",
- deco_type = "simple",
- place_on = marshland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.001,
- spread = {x = 100, y = 100, z = 100},
- seed = 5505,
- octaves = 3,
- persist = 0.5
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:marbhan",
- param2 = 2,
- })
- minetest.register_decoration({
- name = "nodes_nature:bronach",
- deco_type = "simple",
- place_on = marshland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.06,
- spread = {x = 16, y = 16, z = 16},
- seed = 1707,
- octaves = 3,
- persist = 0.9
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:bronach",
- param2 = 3,
- })
- ------------------------------
- --duneland
- minetest.register_decoration({
- name = "nodes_nature:tiken",
- deco_type = "schematic",
- place_on = duneland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 1,
- spread = {x = 64, y = 64, z = 64},
- seed = 998,
- octaves = 3,
- persist = 0.9
- },
- y_max = 7,
- y_min = lowland_ymin,
- schematic = tiken,
- })
- minetest.register_decoration({
- name = "nodes_nature:alaf",
- deco_type = "simple",
- place_on = duneland_on,
- sidelen = 80,
- fill_ratio = 0.1,
- y_max = lowland_ymax + 20,
- y_min = lowland_ymin,
- decoration = "nodes_nature:alaf",
- param2 = 4,
- })
- minetest.register_decoration({
- name = "nodes_nature:anperla",
- deco_type = "simple",
- place_on = duneland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.001,
- spread = {x = 32, y = 32, z = 32},
- seed = 1112,
- octaves = 3,
- persist = 0.8
- },
- y_max = lowland_ymax + 20,
- y_min = lowland_ymin,
- decoration = "nodes_nature:anperla",
- param2 = 3,
- })
- ------------------------------
- --Highland
- minetest.register_decoration({
- name = "nodes_nature:thoka",
- deco_type = "simple",
- place_on = highland_on,
- sidelen = 80,
- fill_ratio = 0.3,
- y_max = 31000,
- y_min = lowland_ymin,
- decoration = "nodes_nature:thoka",
- param2 = 4,
- })
- minetest.register_decoration({
- name = "nodes_nature:merki",
- deco_type = "simple",
- place_on = highland_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.002,
- spread = {x = 32, y = 32, z = 32},
- seed = 1112,
- octaves = 3,
- persist = 0.8
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:merki",
- param2 = 2,
- })
- ------------------------------
- --woodland
- minetest.register_decoration({
- name = "nodes_nature:damo",
- deco_type = "simple",
- place_on = woodland_on,
- sidelen = 80,
- fill_ratio = 0.1,
- y_max = lowland_ymax + 50,
- y_min = lowland_ymin,
- decoration = "nodes_nature:damo",
- param2 = 4,
- })
- minetest.register_decoration({
- name = "nodes_nature:vansano",
- deco_type = "simple",
- place_on = woodland_on,
- sidelen = 80,
- fill_ratio = 0.01,
- y_max = lowland_ymax + 50,
- y_min = lowland_ymin,
- decoration = "nodes_nature:vansano",
- param2 = 2,
- })
- ------------------------------
- --Boulders
- minetest.register_decoration({
- name = "nodes_nature:granite_boulder",
- deco_type = "simple",
- place_on = "nodes_nature:granite",
- sidelen = 80,
- fill_ratio = 0.05,
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:granite_boulder",
- flags = "all_floors",
- })
- minetest.register_decoration({
- name = "nodes_nature:limestone_boulder",
- deco_type = "simple",
- place_on = "nodes_nature:limestone",
- sidelen = 80,
- fill_ratio = 0.05,
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:limestone_boulder",
- flags = "all_floors",
- })
- minetest.register_decoration({
- name = "nodes_nature:basalt_boulder",
- deco_type = "simple",
- place_on = "nodes_nature:basalt",
- sidelen = 80,
- fill_ratio = 0.05,
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:basalt_boulder",
- flags = "all_floors",
- })
- --ironstone..dense on deposits
- minetest.register_decoration({
- name = "nodes_nature:ironstone_boulder",
- deco_type = "simple",
- place_on = "nodes_nature:ironstone",
- sidelen = 80,
- fill_ratio = 0.6,
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:ironstone_boulder",
- flags = "all_floors",
- })
- minetest.register_decoration({
- name = "nodes_nature:gneiss_boulder",
- deco_type = "simple",
- place_on = "nodes_nature:gneiss",
- sidelen = 80,
- fill_ratio = 0.05,
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:gneiss_boulder",
- flags = "all_floors",
- })
- minetest.register_decoration({
- name = "nodes_nature:jade_boulder",
- deco_type = "simple",
- place_on = "nodes_nature:jade",
- sidelen = 80,
- fill_ratio = 0.4,
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:jade_boulder",
- flags = "all_floors",
- })
- ------------------------------
- --Cave sediments
- minetest.register_decoration({
- name = "cave_gravel",
- deco_type = "simple",
- place_on = {
- "nodes_nature:granite",
- "nodes_nature:limestone",
- "nodes_nature:gneiss",
- "nodes_nature:conglomerate",
- },
- sidelen = 4,
- noise_params = {
- offset = -0.4,
- scale = 3.0,
- spread = {x = 32, y = 32, z = 32},
- seed = 873515,
- octaves = 2,
- persist = 0.9
- },
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:gravel",
- place_offset_y = -1,
- flags = "all_floors, force_placement",
- })
- minetest.register_decoration({
- name = "cave_sand",
- deco_type = "simple",
- place_on = {
- "nodes_nature:granite",
- "nodes_nature:limestone",
- "nodes_nature:gneiss",
- "nodes_nature:sandstone",
- },
- sidelen = 4,
- noise_params = {
- offset = -0.4,
- scale = 3.0,
- spread = {x = 32, y = 32, z = 32},
- seed = 795515,
- octaves = 2,
- persist = 0.9
- },
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:sand",
- place_offset_y = -1,
- flags = "all_floors, force_placement",
- })
- minetest.register_decoration({
- name = "cave_clay",
- deco_type = "simple",
- place_on = {
- "nodes_nature:granite",
- "nodes_nature:limestone",
- "nodes_nature:gneiss",
- "nodes_nature:claystone",
- },
- sidelen = 4,
- noise_params = {
- offset = -0.4,
- scale = 3.0,
- spread = {x = 32, y = 32, z = 32},
- seed = 87005,
- octaves = 2,
- persist = 0.9
- },
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:clay",
- place_offset_y = -1,
- flags = "all_floors, force_placement",
- })
- minetest.register_decoration({
- name = "cave_silt",
- deco_type = "simple",
- place_on = {
- "nodes_nature:granite",
- "nodes_nature:limestone",
- "nodes_nature:gneiss",
- "nodes_nature:siltstone",
- },
- sidelen = 4,
- noise_params = {
- offset = -0.4,
- scale = 3.0,
- spread = {x = 32, y = 32, z = 32},
- seed = 87005,
- octaves = 2,
- persist = 0.9
- },
- y_max = 31000,
- y_min = -31000,
- decoration = "nodes_nature:silt",
- place_offset_y = -1,
- flags = "all_floors, force_placement",
- })
- ------------------------------
- --Cave mushrooms.. artifact species escaped from cultivation
- minetest.register_decoration({
- name = "nodes_nature:lambakap",
- deco_type = "simple",
- place_on = {
- "nodes_nature:silt",
- "nodes_nature:clay",
- "nodes_nature:sand",
- "nodes_nature:gravel"
- },
- sidelen = 80,
- fill_ratio = 0.01,
- y_max = -80,
- y_min = -950,
- decoration = "nodes_nature:lambakap",
- flags = "all_floors",
- })
- minetest.register_decoration({
- name = "nodes_nature:reshedaar",
- deco_type = "simple",
- place_on = {
- "nodes_nature:silt",
- "nodes_nature:clay",
- "nodes_nature:sand",
- "nodes_nature:gravel"
- },
- sidelen = 80,
- fill_ratio = 0.01,
- y_max = -80,
- y_min = -950,
- decoration = "nodes_nature:reshedaar",
- flags = "all_floors",
- })
- minetest.register_decoration({
- name = "nodes_nature:mahal",
- deco_type = "simple",
- place_on = {
- "nodes_nature:silt",
- "nodes_nature:clay",
- "nodes_nature:sand",
- "nodes_nature:gravel"
- },
- sidelen = 80,
- fill_ratio = 0.01,
- y_max = -80,
- y_min = -950,
- decoration = "nodes_nature:mahal",
- flags = "all_floors",
- })
- -----------------------------------------------------
- --Animal eggs
- --gundu_eggs
- minetest.register_decoration({
- name = "animals:gundu_eggs",
- deco_type = "simple",
- place_on = {"nodes_nature:silt", "nodes_nature:silt_wet_salty", "nodes_nature:sand", "nodes_nature:sand_wet_salty"},
- sidelen = 80,
- fill_ratio = 0.0005,
- y_max = -5,
- y_min = -25,
- flags = "force_placement",
- decoration = "animals:gundu_eggs",
- })
- --sarkamos egg
- minetest.register_decoration({
- name = "animals:sarkamos_eggs",
- deco_type = "simple",
- place_on = {"nodes_nature:silt", "nodes_nature:silt_wet_salty", "nodes_nature:sand", "nodes_nature:sand_wet_salty"},
- sidelen = 80,
- fill_ratio = 0.00007,
- y_max = -7,
- y_min = -35,
- flags = "force_placement",
- decoration = "animals:sarkamos_eggs",
- })
- --impethu_eggs
- minetest.register_decoration({
- name = "animals:impethu_eggs",
- deco_type = "simple",
- place_on = {
- "nodes_nature:granite",
- "nodes_nature:basalt",
- "nodes_nature:limestone",
- "nodes_nature:sandstone",
- "nodes_nature:siltstone",
- "nodes_nature:claystone",
- "nodes_nature:silt",
- "nodes_nature:clay",
- "nodes_nature:sand",
- "nodes_nature:gravel"},
- sidelen = 80,
- fill_ratio = 0.005,
- y_max = lowland_ymax,
- y_min = -1300,
- decoration = "animals:impethu_eggs",
- flags = "all_floors",
- })
- --kubwakubwa_eggs
- minetest.register_decoration({
- name = "animals:kubwakubwa_eggs",
- deco_type = "simple",
- place_on = {
- "nodes_nature:granite",
- "nodes_nature:basalt",
- "nodes_nature:limestone",
- "nodes_nature:sandstone",
- "nodes_nature:siltstone",
- "nodes_nature:claystone",
- "nodes_nature:silt",
- "nodes_nature:clay",
- "nodes_nature:sand",
- "nodes_nature:gravel"},
- sidelen = 80,
- fill_ratio = 0.0015,
- y_max = lowland_ymax,
- y_min = -150,
- decoration = "animals:kubwakubwa_eggs",
- flags = "all_floors",
- })
- minetest.register_decoration({
- name = "animals:kubwakubwa_eggs_land",
- deco_type = "simple",
- place_on = all_soils_on,
- sidelen = 80,
- fill_ratio = 0.0001,
- y_max = lowland_ymax,
- y_min = 2,
- decoration = "animals:kubwakubwa_eggs",
- flags = "all_floors",
- })
- --darkasthaan_eggs
- minetest.register_decoration({
- name = "animals:darkasthaan_eggs",
- deco_type = "simple",
- place_on = {
- "nodes_nature:granite",
- "nodes_nature:basalt",
- "nodes_nature:silt",
- "nodes_nature:clay",
- "nodes_nature:sand",
- "nodes_nature:gravel"},
- sidelen = 80,
- fill_ratio = 0.002,
- y_max = -130,
- y_min = -1300,
- decoration = "animals:darkasthaan_eggs",
- flags = "all_floors",
- })
- --pegasun_eggs
- minetest.register_decoration({
- name = "animals:pegasun_eggs",
- deco_type = "simple",
- place_on = all_soils_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.0015,
- spread = {x = 100, y = 100, z = 100},
- seed = 1882,
- octaves = 2,
- persist = 0.9
- },
- y_max = lowland_ymax,
- y_min = 3,
- decoration = "animals:pegasun_eggs",
- flags = "all_floors",
- })
- --sneachan_eggs
- minetest.register_decoration({
- name = "animals:sneachan_eggs",
- deco_type = "simple",
- place_on = all_soils_on,
- sidelen = 80,
- fill_ratio = 0.002,
- y_max = lowland_ymax,
- y_min = 3,
- decoration = "animals:sneachan_eggs",
- flags = "all_floors",
- })
- ------------------------------
- --Multiple biomes
- minetest.register_decoration({
- name = "nodes_nature:moss",
- deco_type = "simple",
- place_on = all_soils_on,
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.005,
- spread = {x = 100, y = 100, z = 100},
- seed = 1000,
- octaves = 3,
- persist = 0.9
- },
- y_max = lowland_ymax,
- y_min = lowland_ymin,
- decoration = "nodes_nature:moss",
- })
- --denser moss in marsh
- minetest.register_decoration({
- name = "nodes_nature:moss",
- deco_type = "simple",
- place_on = {
- "nodes_nature:marshland_soil",
- "nodes_nature:marshland_soil_wet",
- "nodes_nature:highland_soil",
- "nodes_nature:highland_soil_wet",
- "nodes_nature:woodland_soil",
- "nodes_nature:woodland_soil_wet"
- },
- sidelen = 16,
- noise_params = {
- offset = 0,
- scale = 0.09,
- spread = {x = 16, y = 16, z = 16},
- seed = 1640,
- octaves = 3,
- persist = 0.8
- },
- y_max = 31000,
- y_min = 1,
- decoration = "nodes_nature:moss",
- })
- -----------------------------------
- --Start node timers
- -- get decoration IDs
- local gundu_eggs = minetest.get_decoration_id("animals:gundu_eggs")
- local sarkamos_eggs = minetest.get_decoration_id("animals:sarkamos_eggs")
- local impethu_eggs = minetest.get_decoration_id("animals:impethu_eggs")
- local kubwakubwa_eggs = minetest.get_decoration_id("animals:kubwakubwa_eggs")
- local kubwakubwa_eggs_land = minetest.get_decoration_id("animals:kubwakubwa_eggs_land")
- local darkasthaan_eggs = minetest.get_decoration_id("animals:darkasthaan_eggs")
- local pegasun_eggs = minetest.get_decoration_id("animals:pegasun_eggs")
- local sneachan_eggs = minetest.get_decoration_id("animals:sneachan_eggs")
- minetest.set_gen_notify(
- {decoration = true},
- {
- gundu_eggs,
- sarkamos_eggs,
- impethu_eggs,
- kubwakubwa_eggs,
- kubwakubwa_eggs_land,
- darkasthaan_eggs,
- pegasun_eggs,
- sneachan_eggs
- })
- -- start nodetimers
- minetest.register_on_generated(function(minp, maxp, blockseed)
- local gennotify = minetest.get_mapgen_object("gennotify")
- local poslist = {}
- for _, pos in ipairs(gennotify["decoration#"..gundu_eggs] or {}) do
- local gundu_eggs_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- table.insert(poslist, gundu_eggs_pos)
- end
- for _, pos in ipairs(gennotify["decoration#"..sarkamos_eggs] or {}) do
- local sarkamos_eggs_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- table.insert(poslist, sarkamos_eggs_pos)
- end
- for _, pos in ipairs(gennotify["decoration#"..impethu_eggs] or {}) do
- local impethu_eggs_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- table.insert(poslist, impethu_eggs_pos)
- end
- for _, pos in ipairs(gennotify["decoration#"..kubwakubwa_eggs] or {}) do
- local kubwakubwa_eggs_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- table.insert(poslist, kubwakubwa_eggs_pos)
- end
- for _, pos in ipairs(gennotify["decoration#"..kubwakubwa_eggs_land] or {}) do
- local kubwakubwa_eggs_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- table.insert(poslist, kubwakubwa_eggs_pos)
- end
- for _, pos in ipairs(gennotify["decoration#"..darkasthaan_eggs] or {}) do
- local darkasthaan_eggs_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- table.insert(poslist, darkasthaan_eggs_pos)
- end
- for _, pos in ipairs(gennotify["decoration#"..pegasun_eggs] or {}) do
- local pegasun_eggs_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- table.insert(poslist, pegasun_eggs_pos)
- end
- for _, pos in ipairs(gennotify["decoration#"..sneachan_eggs] or {}) do
- local sneachan_eggs_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- table.insert(poslist, sneachan_eggs_pos)
- end
- if #poslist ~= 0 then
- for i = 1, #poslist do
- local pos = poslist[i]
- minetest.get_node_timer(pos):start(1)
- end
- end
- end)
|