From 178b83c020023ff7b321c2d3a4d0f57108f43871 Mon Sep 17 00:00:00 2001 From: thunderdog1138 Date: Tue, 19 May 2020 18:40:57 +0000 Subject: [PATCH] Update 'mods/ethereal/mapgen.lua' --- mods/ethereal/mapgen.lua | 833 ++++++++++++--------------------------- 1 file changed, 252 insertions(+), 581 deletions(-) diff --git a/mods/ethereal/mapgen.lua b/mods/ethereal/mapgen.lua index 393268c4..90a9fdc7 100644 --- a/mods/ethereal/mapgen.lua +++ b/mods/ethereal/mapgen.lua @@ -13,25 +13,19 @@ path = path .. "/schematics/" local dpath = minetest.get_modpath("default") .. "/schematics/" -- tree schematics -dofile(path .. "orange_tree.lua") -dofile(path .. "banana_tree.lua") +dofile(path .. "jogan_tree.lua") dofile(path .. "bamboo_tree.lua") -dofile(path .. "birch_tree.lua") dofile(path .. "bush.lua") dofile(path .. "waterlily.lua") dofile(path .. "volcanom.lua") dofile(path .. "volcanol.lua") -dofile(path .. "frosttrees.lua") -dofile(path .. "palmtree.lua") -dofile(path .. "pinetree.lua") -dofile(path .. "yellowtree.lua") -dofile(path .. "mushroomone.lua") -dofile(path .. "willow.lua") -dofile(path .. "bigtree.lua") -dofile(path .. "redwood_tree.lua") -dofile(path .. "vinetree.lua") -dofile(path .. "sakura.lua") -dofile(path .. "igloo.lua") +dofile(path .. "brylark_tree.lua") +dofile(path .. "palm_tree.lua") +dofile(path .. "pine_tree.lua") +dofile(path .. "mushroom.lua") +dofile(path .. "uneti_tree.lua") +dofile(path .. "wroshyr_tree.lua") +dofile(path .. "gnarltree.lua") --= Biomes @@ -61,196 +55,154 @@ end add_biome("underground", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, -31000, -192, 50, 50, 1) -add_biome("mountain", nil, "default:snow", 1, "default:snowblock", 2, +add_biome("mountain", nil, "default:snow", 1, "default:snow_block", 2, nil, nil, nil, nil, nil, 140, 31000, 50, 50, 1) add_biome("desert", nil, "default:desert_sand", 1, "default:desert_sand", 3, - "default:desert_stone", nil, nil, nil, nil, 3, 23, 35, 20, ethereal.desert) + "default:desert_stone", nil, nil, nil, nil, 3, 23, 35, 20, 1) add_biome("desert_ocean", nil, "default:sand", 1, "default:sand", 2, - "default:desert_stone", nil, nil, nil, nil, -192, 3, 35, 20, ethereal.desert) + "default:desert_stone", nil, nil, nil, nil, -192, 3, 35, 20, 1) -if ethereal.glacier == 1 then +minetest.register_biome({ + name = "glacier", + node_dust = "default:snow_block", + node_top = "default:snow_block", + depth_top = 1, + node_filler = "default:snow_block", + depth_filler = 3, + node_stone = "default:ice", + node_water_top = "default:ice", + depth_water_top = 10, + --node_water = "", + node_river_water = "default:ice", + node_riverbed = "default:gravel", + depth_riverbed = 2, + y_min = -8, + y_max = 31000, + heat_point = 0, + humidity_point = 50, +}) - minetest.register_biome({ - name = "glacier", - node_dust = "default:snowblock", - node_top = "default:snowblock", - depth_top = 1, - node_filler = "default:snowblock", - depth_filler = 3, - node_stone = "default:ice", - node_water_top = "default:ice", - depth_water_top = 10, - --node_water = "", - node_river_water = "default:ice", - node_riverbed = "default:gravel", - depth_riverbed = 2, - y_min = -8, - y_max = 31000, - heat_point = 0, - humidity_point = 50, - }) +minetest.register_biome({ + name = "glacier_ocean", + node_dust = "default:snow_block", + node_top = "default:sand", + depth_top = 1, + node_filler = "default:sand", + depth_filler = 3, + --node_stone = "", + --node_water_top = "", + --depth_water_top = , + --node_water = "", + --node_river_water = "", + y_min = -112, + y_max = -9, + heat_point = 0, + humidity_point = 50, +}) - minetest.register_biome({ - name = "glacier_ocean", - node_dust = "default:snowblock", - node_top = "default:sand", - depth_top = 1, - node_filler = "default:sand", - depth_filler = 3, - --node_stone = "", - --node_water_top = "", - --depth_water_top = , - --node_water = "", - --node_river_water = "", - y_min = -112, - y_max = -9, - heat_point = 0, - humidity_point = 50, - }) -end - -add_biome("clearing", nil, "default:dirt_with_grass", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 3, 71, 45, 65, 1) -- ADDED +add_biome("clearing", nil, "ethereal:grass_dirt", 1, "default:dirt", 3, + nil, nil, nil, nil, nil, 3, 71, 45, 65, 1) add_biome("bamboo", nil, "ethereal:bamboo_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 25, 70, 45, 75, ethereal.bamboo) + nil, nil, nil, nil, nil, 25, 70, 45, 75, 1) ---add_biome("bamboo_ocean", nil, "default:sand", 1, "default:sand", 2, - --nil, nil, nil, nil, nil, -192, 2, 45, 75, ethereal.bamboo) +add_biome("bamboo_ocean", nil, "default:sand", 1, "default:sand", 2, + nil, nil, nil, nil, nil, -192, 2, 45, 75, 1) -add_biome("sakura", nil, "ethereal:bamboo_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 3, 25, 45, 75, ethereal.sakura) - -add_biome("sakura_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 2, 45, 75, ethereal.sakura) - -add_biome("mesa", nil, "default:dirt_with_dry_grass", 1, "bakedclay:orange", 15, - nil, nil, nil, nil, nil, 1, 71, 25, 28, ethereal.mesa) +add_biome("mesa", nil, "ethereal:savanna_dirt", 1, "bakedclay:orange", 15, + nil, nil, nil, nil, nil, 1, 71, 25, 28, 1) add_biome("mesa_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 1, 25, 28, ethereal.mesa) + nil, nil, nil, nil, nil, -192, 1, 25, 28, 1) -add_biome("alpine", nil, "default:dirt_with_snow", 1, "default:dirt", 2, - nil, nil, nil, nil, nil, 40, 140, 10, 40, ethereal.alpine) +add_biome("alpine", nil, "default:snow_dirt", 1, "default:dirt", 2, + nil, nil, nil, nil, nil, 40, 140, 10, 40, 1) -if minetest.registered_nodes["default:dirt_with_coniferous_litter"] then -add_biome("snowy", nil, "default:dirt_with_coniferous_litter", 1, "default:dirt", - 2, nil, nil, nil, nil, nil, 4, 40, 10, 40, ethereal.snowy) -else add_biome("snowy", nil, "ethereal:cold_dirt", 1, "default:dirt", 2, - nil, nil, nil, nil, nil, 4, 40, 10, 40, ethereal.snowy) -end + nil, nil, nil, nil, nil, 4, 40, 10, 40, 1) -add_biome("frost", nil, "ethereal:crystal_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 1, 71, 10, 40, ethereal.frost) - -add_biome("frost_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 1, 10, 40, ethereal.frost) - -add_biome("grassy", nil, "default:dirt_with_grass", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 3, 91, 13, 40, ethereal.grassy) +add_biome("grassy", nil, "ethereal:grass_dirt", 1, "default:dirt", 3, + nil, nil, nil, nil, nil, 3, 91, 13, 40, 1) add_biome("grassy_ocean", nil, "defaut:sand", 2, "default:gravel", 1, - nil, nil, nil, nil, nil, -31000, 3, 13, 40, ethereal.grassy) + nil, nil, nil, nil, nil, -31000, 3, 13, 40, 1) add_biome("caves", nil, "default:desert_stone", 3, "air", 8, - nil, nil, nil, nil, nil, 4, 41, 15, 25, ethereal.caves) + nil, nil, nil, nil, nil, 4, 41, 15, 25, 1) -add_biome("grayness", nil, "ethereal:gray_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 2, 41, 15, 30, ethereal.grayness) - -if minetest.registered_nodes["default:silver_sand"] then - add_biome("grayness_ocean", nil, "default:silver_sand", 2, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 1, 15, 30, ethereal.grayness) -else - add_biome("grayness_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 1, 15, 30, ethereal.grayness) -end - -add_biome("grassytwo", nil, "default:dirt_with_grass", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 1, 91, 15, 40, ethereal.grassytwo) +add_biome("grassytwo", nil, "ethereal:grass_dirt", 1, "default:dirt", 3, + nil, nil, nil, nil, nil, 1, 91, 15, 40, 1) add_biome("grassytwo_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 1, 15, 40, ethereal.grassytwo) + nil, nil, nil, nil, nil, -192, 1, 15, 40, 1) add_biome("prairie", nil, "ethereal:prairie_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 3, 26, 20, 40, ethereal.prairie) + nil, nil, nil, nil, nil, 3, 26, 20, 40, 1) add_biome("prairie_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 1, 20, 40, ethereal.prairie) + nil, nil, nil, nil, nil, -192, 1, 20, 40, 1) -add_biome("jumble", nil, "default:dirt_with_grass", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 1, 71, 25, 50, ethereal.jumble) +add_biome("jumble", nil, "ethereal:grass_dirt", 1, "default:dirt", 3, + nil, nil, nil, nil, nil, 1, 71, 25, 50, 1) add_biome("jumble_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 1, 25, 50, ethereal.jumble) + nil, nil, nil, nil, nil, -192, 1, 25, 50, 1) -if minetest.registered_nodes["default:dirt_with_rainforest_litter"] then - add_biome("junglee", nil, "default:dirt_with_rainforest_litter", 1, - "default:dirt", 3, nil, nil, nil, nil, nil, 1, 71, 30, 60, ethereal.junglee) -else add_biome("junglee", nil, "ethereal:jungle_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 1, 71, 30, 60, ethereal.junglee) -end + nil, nil, nil, nil, nil, 1, 71, 30, 60, 1) add_biome("junglee_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 1, 30, 60, ethereal.junglee) + nil, nil, nil, nil, nil, -192, 1, 30, 60, 1) -add_biome("grove", nil, "ethereal:grove_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 3, 23, 45, 35, ethereal.grove) +add_biome("grove", nil, "ethereal:grass_dirt", 1, "default:dirt", 3, + nil, nil, nil, nil, nil, 3, 23, 45, 35, 1) add_biome("grove_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 2, 45, 35, ethereal.grove) + nil, nil, nil, nil, nil, -192, 2, 45, 35, 1) -add_biome("mushroom", nil, "ethereal:mushroom_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 3, 50, 45, 55, ethereal.mushroom) +add_biome("fungus", nil, "ethereal:fungus_dirt", 1, "default:dirt", 3, + nil, nil, nil, nil, nil, 3, 50, 45, 55, 1) -add_biome("mushroom_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 2, 45, 55, ethereal.mushroom) +add_biome("fungus_ocean", nil, "default:sand", 1, "default:sand", 2, + nil, nil, nil, nil, nil, -192, 2, 45, 55, 1) add_biome("sandstone", nil, "default:sandstone", 1, "default:sandstone", 1, - "default:sandstone", nil, nil, nil, nil, 3, 23, 50, 20, ethereal.sandstone) + "default:sandstone", nil, nil, nil, nil, 3, 23, 50, 20, 1) add_biome("sandstone_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 2, 50, 20, ethereal.sandstone) + nil, nil, nil, nil, nil, -192, 2, 50, 20, 1) -add_biome("quicksand", nil, "ethereal:quicksand2", 3, "default:gravel", 1, - nil, nil, nil, nil, nil, 1, 1, 50, 38, ethereal.quicksand) +add_biome("quicksand", nil, "ethereal:quicksand", 3, "default:gravel", 1, + nil, nil, nil, nil, nil, 1, 1, 50, 38, 1) add_biome("plains", nil, "ethereal:dry_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 3, 25, 65, 25, ethereal.plains) + nil, nil, nil, nil, nil, 3, 25, 65, 25, 1) add_biome("plains_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 2, 55, 25, ethereal.plains) + nil, nil, nil, nil, nil, -192, 2, 55, 25, 1) -if minetest.registered_nodes["default:dry_dirt_with_dry_grass"] then - add_biome("savanna", nil, "default:dry_dirt_with_dry_grass", 1, - "default:dry_dirt", 3, nil, nil, nil, nil, nil, 3, 50, 55, 25, - ethereal.savanna) -else - add_biome("savanna", nil, "default:dirt_with_dry_grass", 1, "default:dirt", - 3, nil, nil, nil, nil, nil, 3, 50, 55, 25, ethereal.savanna) -end +add_biome("savanna", nil, "ethereal:savanna_dirt", 1, "default:dirt", + 3, nil, nil, nil, nil, nil, 3, 50, 55, 25, 1) add_biome("savanna_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 1, 55, 25, ethereal.savanna) + nil, nil, nil, nil, nil, -192, 1, 55, 25, 1) -add_biome("fiery", nil, "ethereal:fiery_dirt", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 5, 20, 75, 10, ethereal.fiery) +add_biome("volcanic", nil, "ethereal:charred_dirt", 1, "ethereal:dry_dirt", 3, + nil, nil, nil, nil, nil, 5, 20, 75, 10, 1) -add_biome("fiery_ocean", nil, "default:sand", 1, "default:sand", 2, - nil, nil, nil, nil, nil, -192, 4, 75, 10, ethereal.fiery) +add_biome("volcanic_ocean", nil, "default:sand", 1, "default:sand", 2, + nil, nil, nil, nil, nil, -192, 4, 75, 10, 1) -add_biome("sandclay", nil, "default:sand", 3, "default:clay", 2, - nil, nil, nil, nil, nil, 1, 11, 65, 2, ethereal.sandclay) +add_biome("sandclay", nil, "default:sand", 3, "default:clay_block", 2, + nil, nil, nil, nil, nil, 1, 11, 65, 2, 1) -add_biome("swamp", nil, "default:dirt_with_grass", 1, "default:dirt", 3, - nil, nil, nil, nil, nil, 1, 7, 80, 90, ethereal.swamp) +add_biome("swamp", nil, "ethereal:swamp_dirt", 1, "default:dirt", 3, + nil, nil, nil, nil, nil, 1, 7, 80, 90, 1) -add_biome("swamp_ocean", nil, "default:sand", 2, "default:clay", 2, - nil, nil, nil, nil, nil, -192, 1, 80, 90, ethereal.swamp) +add_biome("swamp_ocean", nil, "default:sand", 2, "default:clay_block", 2, + nil, nil, nil, nil, nil, -192, 1, 80, 90, 1) --= schematic decorations @@ -272,173 +224,93 @@ local add_schem = function(a, b, c, d, e, f, g, h) }) end -if ethereal.glacier then - - -- igloo - minetest.register_decoration({ - deco_type = "schematic", - place_on = {"default:snowblock"}, - sidelen = 80, - fill_ratio = 0.001, - biomes = {"glacier"}, - y_min = 3, - y_max = 50, - schematic = ethereal.igloo, - flags = "place_center_x, place_center_z", - spawn_by = "default:snowblock", - num_spawn_by = 8, - rotation = "random", - }) -end - ---sakura tree -add_schem({"ethereal:bamboo_dirt"}, 0.01, {"sakura"}, 7, 100, ethereal.sakura_tree, ethereal.sakura) - --- redwood tree -add_schem({"default:dirt_with_dry_grass"}, 0.0025, {"mesa"}, 1, 100, ethereal.redwood_tree, ethereal.mesa) - --- banana tree -add_schem({"ethereal:grove_dirt"}, 0.015, {"grove"}, 1, 100, ethereal.bananatree, ethereal.grove) +-- wroshyr tree +add_schem({"ethereal:jungle_dirt"}, 0.0025, {"junglee"}, 1, 100, ethereal.wroshyr_tree, 1) -- healing tree -add_schem({"default:dirt_with_snow"}, 0.01, {"alpine"}, 120, 140, ethereal.yellowtree, ethereal.alpine) +add_schem({"default:snow_dirt"}, 0.01, {"alpine"}, 120, 140, ethereal.uneti_tree, 1) --- crystal frost tree -add_schem({"ethereal:crystal_dirt"}, 0.01, {"frost"}, 1, 100, ethereal.frosttrees, ethereal.frost) +-- brylark tree +add_schem({"ethereal:jungle_dirt"}, 0.01, {"junglee"}, 1, 100, ethereal.brylark_tree, 1) -if ethereal.mushroom then +-- giant shroom +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"ethereal:fungus_dirt"}, + sidelen = 80, + fill_ratio = 0.02, + biomes = {"fungus"}, + y_min = 1, + y_max = 100, + schematic = ethereal.mushroom, + flags = "place_center_x, place_center_z", + spawn_by = "ethereal:fungus_dirt", + num_spawn_by = 6, +}) - -- giant shroom - minetest.register_decoration({ - deco_type = "schematic", - place_on = {"ethereal:mushroom_dirt"}, - sidelen = 80, - fill_ratio = 0.02, - biomes = {"mushroom"}, - y_min = 1, - y_max = 100, - schematic = ethereal.mushroomone, - flags = "place_center_x, place_center_z", - spawn_by = "ethereal:mushroom_dirt", - num_spawn_by = 6, - }) -end - -if ethereal.fiery then - - -- small lava crater - minetest.register_decoration({ - deco_type = "schematic", - place_on = {"ethereal:fiery_dirt"}, - sidelen = 80, - fill_ratio = 0.01, - biomes = {"fiery"}, - y_min = 1, - y_max = 100, - schematic = ethereal.volcanom, - flags = "place_center_x, place_center_z", - spawn_by = "ethereal:fiery_dirt", - num_spawn_by = 8, - }) +-- small lava crater +minetest.register_decoration({ + deco_type = "schematic", + place_on = {"ethereal:charred_dirt"}, + sidelen = 80, + fill_ratio = 0.01, + biomes = {"volcanic"}, + y_min = 1, + y_max = 100, + schematic = ethereal.volcanom, + flags = "place_center_x, place_center_z", + spawn_by = "ethereal:charred_dirt", + num_spawn_by = 8, +}) -- large lava crater minetest.register_decoration({ deco_type = "schematic", - place_on = {"ethereal:fiery_dirt"}, + place_on = {"ethereal:charred_dirt"}, sidelen = 80, fill_ratio = 0.003, - biomes = {"fiery"}, + biomes = {"volcanic"}, y_min = 1, y_max = 100, schematic = ethereal.volcanol, flags = "place_center_x, place_center_z", - spawn_by = "ethereal:fiery_dirt", + spawn_by = "ethereal:charred_dirt", num_spawn_by = 8, rotation = "random", }) end --- default jungle tree -add_schem({"ethereal:jungle_dirt", "default:dirt_with_rainforest_litter"}, 0.08, {"junglee"}, 1, 100, dpath .. "jungle_tree.mts", ethereal.junglee) +-- pine tree +add_schem({"ethereal:cold_dirt"}, 0.025, {"snowy"}, 10, 40, ethereal.pine_tree, 1) +add_schem({"default:snow_dirt"}, 0.025, {"alpine"}, 40, 140, ethereal.pine_tree, 1) --- willow tree -add_schem({"ethereal:gray_dirt"}, 0.02, {"grayness"}, 1, 100, ethereal.willow, ethereal.grayness) - --- pine tree (default for lower elevation and ethereal for higher) -add_schem({"ethereal:cold_dirt", "default:dirt_with_coniferous_litter"}, 0.025, {"snowy"}, 10, 40, ethereal.pinetree, ethereal.snowy) -add_schem({"default:dirt_with_snow"}, 0.025, {"alpine"}, 40, 140, ethereal.pinetree, ethereal.alpine) - --- default apple tree -add_schem({"default:dirt_with_grass"}, 0.02, {"jumble"}, 1, 100, dpath .. "apple_tree.mts", ethereal.grassy) -add_schem({"default:dirt_with_grass"}, 0.03, {"grassy"}, 1, 100, dpath .. "apple_tree.mts", ethereal.grassy) - --- big old tree -add_schem({"default:dirt_with_grass"}, 0.001, {"jumble"}, 1, 100, ethereal.bigtree, ethereal.jumble) - --- aspen tree -add_schem({"default:dirt_with_grass"}, 0.02, {"grassytwo"}, 1, 50, dpath .. "aspen_tree.mts", ethereal.jumble) - --- birch tree -add_schem({"default:dirt_with_grass"}, 0.02, {"grassytwo"}, 50, 100, ethereal.birchtree, ethereal.grassytwo) - --- orange tree -add_schem({"ethereal:prairie_dirt"}, 0.01, {"prairie"}, 1, 100, ethereal.orangetree, ethereal.prairie) - --- default acacia tree -if minetest.registered_nodes["default:dry_dirt_with_dry_grass"] then - add_schem({"default:dry_dirt_with_dry_grass"}, 0.004, {"savanna"}, 1, 100, - dpath .. "acacia_tree.mts", ethereal.savanna) -else - add_schem({"default:dirt_with_dry_grass"}, 0.004, {"savanna"}, 1, 100, - dpath .. "acacia_tree.mts", ethereal.savanna) -end - --- large cactus (by Paramat) -if ethereal.desert == 1 then -minetest.register_decoration({ - deco_type = "schematic", - place_on = {"default:desert_sand"}, - sidelen = 80, - noise_params = { - offset = -0.0005, - scale = 0.0015, - spread = {x = 200, y = 200, z = 200}, - seed = 230, - octaves = 3, - persist = 0.6 - }, - biomes = {"desert"}, - y_min = 5, - y_max = 31000, - schematic = dpath .. "large_cactus.mts", - flags = "place_center_x", --, place_center_z", - rotation = "random", -}) -end +-- jogan tree +add_schem({"ethereal:grass_dirt"}, 0.02, {"jumble"}, 1, 100, ethereal.jogan_tree, 1) +add_schem({"ethereal:grass_dirt"}, 0.03, {"grassy"}, 1, 100, ethereal.jogan_tree, 1) +add_schem({"ethereal:prairie_dirt"}, 0.01, {"prairie"}, 1, 100, ethereal.jogan_tree, 1) -- palm tree -add_schem({"default:sand"}, 0.0025, {"desert_ocean"}, 1, 1, ethereal.palmtree, ethereal.desert) -add_schem({"default:sand"}, 0.0025, {"plains_ocean"}, 1, 1, ethereal.palmtree, ethereal.plains) -add_schem({"default:sand"}, 0.0025, {"sandclay"}, 1, 1, ethereal.palmtree, ethereal.sandclay) -add_schem({"default:sand"}, 0.0025, {"sandstone_ocean"}, 1, 1, ethereal.palmtree, ethereal.sandstone) -add_schem({"default:sand"}, 0.0025, {"mesa_ocean"}, 1, 1, ethereal.palmtree, ethereal.mesa) -add_schem({"default:sand"}, 0.0025, {"grove_ocean"}, 1, 1, ethereal.palmtree, ethereal.grove) -add_schem({"default:sand"}, 0.0025, {"grassy_ocean"}, 1, 1, ethereal.palmtree, ethereal.grassy) +add_schem({"default:sand"}, 0.0025, {"desert_ocean"}, 1, 1, ethereal.palm_tree, 1) +add_schem({"default:sand"}, 0.0025, {"plains_ocean"}, 1, 1, ethereal.palm_tree, 1) +add_schem({"default:sand"}, 0.0025, {"sandclay"}, 1, 1, ethereal.palm_tree, 1) +add_schem({"default:sand"}, 0.0025, {"sandstone_ocean"}, 1, 1, ethereal.palm_tree, 1) +add_schem({"default:sand"}, 0.0025, {"mesa_ocean"}, 1, 1, ethereal.palm_tree, 1) +add_schem({"default:sand"}, 0.0025, {"grove_ocean"}, 1, 1, ethereal.palm_tree, 1) +add_schem({"default:sand"}, 0.0025, {"grassy_ocean"}, 1, 1, ethereal.palm_tree, 1) -- bamboo tree -add_schem({"ethereal:bamboo_dirt"}, 0.025, {"bamboo"}, 1, 100, ethereal.bambootree, ethereal.bamboo) +add_schem({"ethereal:bamboo_dirt"}, 0.025, {"bamboo"}, 1, 100, ethereal.bamboo_tree, 1) --- bush -add_schem({"ethereal:bamboo_dirt"}, 0.08, {"bamboo"}, 1, 100, ethereal.bush, ethereal.bamboo) +-- bamboo_bush +add_schem({"ethereal:bamboo_dirt"}, 0.08, {"bamboo"}, 1, 100, ethereal.bamboo_bush, 1) -- vine tree -add_schem({"default:dirt_with_grass"}, 0.02, {"swamp"}, 1, 100, ethereal.vinetree, ethereal.swamp) +add_schem({"ethereal:swamp_dirt"}, 0.02, {"swamp"}, 1, 100, ethereal.gnarltree, 1) --- water pools in swamp areas if 5.0 detected -if minetest.registered_nodes["default:permafrost"] then +-- water pools in swamp areas minetest.register_decoration({ deco_type = "simple", - place_on = {"default:dirt_with_grass"}, + place_on = {"ethereal:swamp_dirt"}, place_offset_y = -1, sidelen = 16, fill_ratio = 0.01, @@ -447,12 +319,13 @@ minetest.register_decoration({ y_min = 1, flags = "force_placement", decoration = "default:water_source", - spawn_by = "default:dirt_with_grass", + spawn_by = "ethereal:swamp_dirt", num_spawn_by = 8, }) + minetest.register_decoration({ deco_type = "simple", - place_on = {"default:dirt_with_grass"}, + place_on = {"ethereal:swamp_dirt"}, place_offset_y = -1, sidelen = 16, fill_ratio = 0.1, @@ -461,15 +334,14 @@ minetest.register_decoration({ y_min = 1, flags = "force_placement", decoration = "default:water_source", - spawn_by = {"default:dirt_with_grass", "default:water_source"}, + spawn_by = {"ethereal:swamp_dirt", "default:water_source"}, num_spawn_by = 8, }) -end -if minetest.registered_nodes["default:dry_dirt_with_dry_grass"] then +-- dry pateches in savanna minetest.register_decoration({ deco_type = "simple", - place_on = {"default:dry_dirt_with_dry_grass"}, + place_on = {"ethereal:savanna_dirt"}, sidelen = 4, noise_params = { offset = -1.5, @@ -482,74 +354,31 @@ if minetest.registered_nodes["default:dry_dirt_with_dry_grass"] then biomes = {"savanna"}, y_max = 31000, y_min = 1, - decoration = "default:dry_dirt", + decoration = "ethereal:dry_dirt", place_offset_y = -1, flags = "force_placement", }) end -- bush -minetest.register_decoration({ - deco_type = "schematic", - place_on = {"default:dirt_with_grass", "default:dirt_with_snow"}, - sidelen = 16, - noise_params = { - offset = -0.004, - scale = 0.01, - spread = {x = 100, y = 100, z = 100}, - seed = 137, - octaves = 3, - persist = 0.7, - }, - biomes = {"grassy", "grassytwo", "jumble"}, - y_min = 1, - y_max = 31000, - schematic = dpath .. "bush.mts", - flags = "place_center_x, place_center_z", -}) - --- Acacia bush -minetest.register_decoration({ - deco_type = "schematic", - place_on = {"default:dirt_with_dry_grass", "default:dry_dirt_with_dry_grass"}, - sidelen = 16, - noise_params = { - offset = -0.004, - scale = 0.01, - spread = {x = 100, y = 100, z = 100}, - seed = 90155, - octaves = 3, - persist = 0.7, - }, - biomes = {"savanna", "mesa"}, - y_min = 1, - y_max = 31000, - schematic = dpath .. "acacia_bush.mts", - flags = "place_center_x, place_center_z", -}) - --- Pine bush -if minetest.registered_nodes["default:pine_bush"] then - minetest.register_decoration({ - name = "default:pine_bush", - deco_type = "schematic", - place_on = {"default:dirt_with_snow"}, - sidelen = 16, - noise_params = { - offset = -0.004, - scale = 0.01, - spread = {x = 100, y = 100, z = 100}, - seed = 137, - octaves = 3, - persist = 0.7, - }, - biomes = {"alpine"}, - y_max = 31000, - y_min = 4, - schematic = dpath .. "pine_bush.mts", - flags = "place_center_x, place_center_z", - }) -end +--minetest.register_decoration({ +-- deco_type = "schematic", +-- place_on = {"default:dirt_with_grass", "default:dirt_with_snow"}, +-- sidelen = 16, +-- noise_params = { +-- offset = -0.004, +-- scale = 0.01, +-- spread = {x = 100, y = 100, z = 100}, +-- seed = 137, +-- octaves = 3, +-- persist = 0.7, +-- }, +-- biomes = {"grassy", "grassytwo", "jumble"}, +-- y_min = 1, +-- y_max = 31000, +-- schematic = dpath .. "bush.mts", +-- flags = "place_center_x, place_center_z", +--}) --= simple decorations @@ -572,76 +401,55 @@ local add_node = function(a, b, c, d, e, f, g, h, i, j) }) end ---firethorn shrub -add_node({"default:snowblock"}, 0.001, {"glacier"}, 1, 30, {"ethereal:firethorn"}, nil, nil, nil, ethereal.glacier) - -- scorched tree -add_node({"ethereal:dry_dirt"}, 0.006, {"plains"}, 1, 100, {"ethereal:scorched_tree"}, 6, nil, nil, ethereal.plains) +add_node({"ethereal:dry_dirt"}, 0.006, {"plains"}, 1, 100, {"ethereal:scorched_tree"}, 6, nil, nil, 1) -- dry shrub -add_node({"ethereal:dry_dirt"}, 0.015, {"plains"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.plains) -add_node({"default:sand"}, 0.015, {"grassy_ocean"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.grassy) -add_node({"default:desert_sand"}, 0.015, {"desert"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.desert) -add_node({"default:sandstone"}, 0.015, {"sandstone"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.sandstone) -add_node({"bakedclay:red", "bakedclay:orange"}, 0.015, {"mesa"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.mesa) +add_node({"ethereal:dry_dirt"}, 0.015, {"plains"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, 1) +add_node({"default:sand"}, 0.015, {"grassy_ocean"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, 1) +add_node({"default:desert_sand"}, 0.015, {"desert"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, 1) +add_node({"default:sandstone"}, 0.015, {"sandstone"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, 1) +add_node({"bakedclay:red", "bakedclay:orange"}, 0.015, {"mesa"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, 1) -- dry grass -if minetest.registered_nodes["default:dry_dirt_with_dry_grass"] then - add_node({"default:dry_dirt_with_dry_grass"}, 0.25, {"savanna"}, 1, 100, +add_node({"ethereal:savanna_dirt"}, 0.25, {"savanna"}, 1, 100, {"default:dry_grass_2", "default:dry_grass_3", "default:dry_grass_4", - "default:dry_grass_5"}, nil, nil, nil, ethereal.savanna) -else - add_node({"default:dirt_with_dry_grass"}, 0.25, {"savanna"}, 1, 100, - {"default:dry_grass_2", "default:dry_grass_3", "default:dry_grass_4", - "default:dry_grass_5"}, nil, nil, nil, ethereal.savanna) -end - -add_node({"default:dirt_with_dry_grass"}, 0.10, {"mesa"}, 1, 100, {"default:dry_grass_2", - "default:dry_grass_3", "default:dry_grass_4", "default:dry_grass_5"}, nil, nil, nil, ethereal.mesa) + "default:dry_grass_5"}, nil, nil, nil, 1) +add_node({"ethereal:savanna_dirt"}, 0.10, {"mesa"}, 1, 100, {"default:dry_grass_2", + "default:dry_grass_3", "default:dry_grass_4", "default:dry_grass_5"}, nil, nil, nil, 1) add_node({"default:desert_stone"}, 0.005, {"caves"}, 5, 40, {"default:dry_grass_2", - "default:dry_grass_3", "default:dry_shrub"}, nil, nil, nil, ethereal.caves) + "default:dry_grass_3", "default:dry_shrub"}, nil, nil, nil, 1) -- flowers & strawberry -add_node({"default:dirt_with_grass"}, 0.025, {"grassy"}, 1, 100, {"flowers:dandelion_white", - "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", - "flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.grassy) -add_node({"default:dirt_with_grass"}, 0.025, {"grassytwo"}, 1, 100, {"flowers:dandelion_white", - "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", - "flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.grassytwo) +--add_node({"default:dirt_with_grass"}, 0.025, {"grassy"}, 1, 100, {"flowers:dandelion_white", +-- "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", +-- "flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.grassy) +--add_node({"default:dirt_with_grass"}, 0.025, {"grassytwo"}, 1, 100, {"flowers:dandelion_white", +-- "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", +-- "flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.grassytwo) -- prairie flowers & strawberry -add_node({"ethereal:prairie_dirt"}, 0.035, {"prairie"}, 1, 100, {"flowers:dandelion_white", - "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", - "flowers:viola", "ethereal:strawberry_7", "flowers:chrysanthemum_green", "flowers:tulip_black"}, nil, nil, nil, ethereal.prairie) - --- crystal spike & crystal grass -add_node({"ethereal:crystal_dirt"}, 0.02, {"frost"}, 1, 100, {"ethereal:crystal_spike", - "ethereal:crystalgrass"}, nil, nil, nil, ethereal.frost) - --- red shrub -add_node({"ethereal:fiery_dirt"}, 0.10, {"fiery"}, 1, 100, {"ethereal:dry_shrub"}, nil, nil, nil, ethereal.fiery) - --- fire flower ---add_node({"ethereal:fiery_dirt"}, 0.02, {"fiery"}, 1, 100, {"ethereal:fire_flower"}, nil, nil, nil, ethereal.fiery) +--add_node({"ethereal:prairie_dirt"}, 0.035, {"prairie"}, 1, 100, {"flowers:dandelion_white", +-- "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", +-- "flowers:viola", "ethereal:strawberry_7", "flowers:chrysanthemum_green", "flowers:tulip_black"}, nil, nil, nil, ethereal.prairie) -- snowy grass -add_node({"ethereal:gray_dirt"}, 0.05, {"grayness"}, 1, 100, {"ethereal:snowygrass"}, nil, nil, nil, ethereal.grayness) -add_node({"ethereal:cold_dirt", "default:dirt_with_coniferous_litter"}, 0.05, {"snowy"}, 1, 100, {"ethereal:snowygrass"}, nil, nil, nil, ethereal.snowy) +add_node({"ethereal:cold_dirt"}, 0.05, {"snowy"}, 1, 100, {"ethereal:snowygrass"}, nil, nil, nil, 1) -- cactus -add_node({"default:sandstone"}, 0.0025, {"sandstone"}, 1, 100, {"default:cactus"}, 3, nil, nil, ethereal.sandstone) -add_node({"default:desert_sand"}, 0.005, {"desert"}, 1, 100, {"default:cactus"}, 4, nil, nil, ethereal.desert) +add_node({"default:sandstone"}, 0.0025, {"sandstone"}, 1, 100, {"default:cactus"}, 3, nil, nil, 1) +add_node({"default:desert_sand"}, 0.005, {"desert"}, 1, 100, {"default:cactus"}, 4, nil, nil, 1) -- wild red mushroom -add_node({"ethereal:mushroom_dirt"}, 0.01, {"mushroom"}, 1, 100, {"flowers:mushroom_fertile_red"}, nil, nil, nil, ethereal.mushroom) +--add_node({"ethereal:mushroom_dirt"}, 0.01, {"mushroom"}, 1, 100, {"flowers:mushroom_fertile_red"}, nil, nil, nil, 1) local list = { - {"junglee", {"ethereal:jungle_dirt", "default:dirt_with_rainforest_litter"}, ethereal.junglee}, - {"grassy", {"default:dirt_with_grass"}, ethereal.grassy}, - {"grassytwo", {"default:dirt_with_grass"}, ethereal.grassytwo}, - {"prairie", {"ethereal:prairie_dirt"}, ethereal.prairie}, - {"mushroom", {"ethereal:mushroom_dirt"}, ethereal.mushroom}, - {"swamp", {"default:dirt_with_grass"}, ethereal.swamp}, + {"junglee", {"ethereal:jungle_dirt"}, 1}, + {"grassy", {"ethereal:grass_dirt"}, 1}, + {"grassytwo", {"ethereal:grass_dirt"}, 1}, + {"prairie", {"ethereal:prairie_dirt"}, 1}, + {"fungus", {"ethereal:fungus_dirt"}, 1}, + {"swamp", {"ethereal:swamp_dirt"}, 1}, } -- wild red and brown mushrooms @@ -670,78 +478,46 @@ end end -- jungle grass -add_node({"ethereal:jungle_dirt", "default:dirt_with_rainforest_litter"}, 0.10, {"junglee"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.junglee) -add_node({"default:dirt_with_grass"}, 0.15, {"jumble"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.jumble) -add_node({"default:dirt_with_grass"}, 0.25, {"swamp"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.swamp) +add_node({"ethereal:jungle_dirt"}, 0.10, {"junglee"}, 1, 100, {"default:jungle_grass"}, nil, nil, nil, 1) +add_node({"ethereal:grass_dirt"}, 0.15, {"jumble"}, 1, 100, {"default:jungle_grass"}, nil, nil, nil, 1) +add_node({"ethereal:grass_dirt"}, 0.25, {"swamp"}, 1, 100, {"default:jungle_grass"}, nil, nil, nil, 1) -- grass -add_node({"default:dirt_with_grass"}, 0.35, {"grassy"}, 1, 100, {"default:grass_2", "default:grass_3", - "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grassy) -add_node({"default:dirt_with_grass"}, 0.35, {"grassytwo"}, 1, 100, {"default:grass_2", "default:grass_3", - "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grassytwo) -add_node({"default:dirt_with_grass"}, 0.35, {"jumble"}, 1, 100, {"default:grass_2", "default:grass_3", - "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.jumble) -add_node({"ethereal:jungle_dirt", "default:dirt_with_rainforest_litter"}, 0.35, {"junglee"}, 1, 100, {"default:grass_2", "default:grass_3", - "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.junglee) +add_node({"ethereal:grass_dirt"}, 0.35, {"grassy"}, 1, 100, {"default:grass_2", "default:grass_3", + "default:grass_4", "default:grass_5"}, nil, nil, nil, 1) +add_node({"ethereal:grass_dirt"}, 0.35, {"grassytwo"}, 1, 100, {"default:grass_2", "default:grass_3", + "default:grass_4", "default:grass_5"}, nil, nil, nil, 1) +add_node({"ethereal:grass_dirt"}, 0.35, {"jumble"}, 1, 100, {"default:grass_2", "default:grass_3", + "default:grass_4", "default:grass_5"}, nil, nil, nil, 1) +add_node({"ethereal:jungle_dirt"}, 0.35, {"junglee"}, 1, 100, {"default:grass_2", "default:grass_3", + "default:grass_4", "default:grass_5"}, nil, nil, nil, 1) add_node({"ethereal:prairie_dirt"}, 0.35, {"prairie"}, 1, 100, {"default:grass_2", "default:grass_3", - "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.prairie) -add_node({"ethereal:grove_dirt"}, 0.35, {"grove"}, 1, 100, {"default:grass_2", "default:grass_3", - "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grove) + "default:grass_4", "default:grass_5"}, nil, nil, nil, 1) +add_node({"ethereal:grass_dirt"}, 0.35, {"grove"}, 1, 100, {"default:grass_2", "default:grass_3", + "default:grass_4", "default:grass_5"}, nil, nil, nil, 1) add_node({"ethereal:bamboo_dirt"}, 0.35, {"bamboo"}, 1, 100, {"default:grass_2", "default:grass_3", - "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.bamboo) -add_node({"default:dirt_with_grass"}, 0.35, {"clearing", "swamp"}, 1, 100, {"default:grass_3", + "default:grass_4", "default:grass_5"}, nil, nil, nil, 1) +add_node({"ethereal:grass_dirt"}, 0.35, {"clearing"}, 1, 100, {"default:grass_3", + "default:grass_4"}, nil, nil, nil, 1) +add_node({"ethereal:swamp_dirt"}, 0.35, {"swamp"}, 1, 100, {"default:grass_3", "default:grass_4"}, nil, nil, nil, 1) -add_node({"ethereal:bamboo_dirt"}, 0.35, {"sakura"}, 1, 100, {"default:grass_2", "default:grass_3", "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.sakura) --- grass on sand (and maybe blueberry bush) -if minetest.registered_nodes["default:marram_grass_1"] then - -add_node({"default:sand"}, 0.25, {"sandclay"}, 3, 4, {"default:marram_grass_1", - "default:marram_grass_2", "default:marram_grass_3"}, nil, nil, nil, ethereal.sandclay) - --- Blueberry bush -minetest.register_decoration({ - name = "default:blueberry_bush", - deco_type = "schematic", - place_on = {"default:dirt_with_coniferous_litter", "default:dirt_with_snow"}, - sidelen = 16, - noise_params = { - offset = -0.004, - scale = 0.01, - spread = {x = 100, y = 100, z = 100}, - seed = 697, - octaves = 3, - persist = 0.7, - }, - biomes = {"snowy", "alpine"}, - y_max = 31000, - y_min = 1, - place_offset_y = 1, - schematic = dpath .. "blueberry_bush.mts", - flags = "place_center_x, place_center_z", -}) -else -add_node({"default:sand"}, 0.25, {"sandclay"}, 3, 4, {"default:grass_2", "default:grass_3"}, nil, nil, nil, ethereal.sandclay) -end +-- saago grass +add_node({"default:sand"}, 0.25, {"sandclay"}, 3, 4, {"default:saago_grass_1", + "default:saago_grass_2", "default:saago_grass_3"}, nil, nil, nil, 1) -- ferns -add_node({"ethereal:grove_dirt"}, 0.2, {"grove"}, 1, 100, {"ethereal:fern"}, nil, nil, nil, ethereal.grove) -add_node({"default:dirt_with_grass"}, 0.1, {"swamp"}, 1, 100, {"ethereal:fern"}, nil, nil, nil, ethereal.swamp) +add_node({"ethereal:grass_dirt"}, 0.2, {"grove"}, 1, 100, {"ethereal:fern"}, nil, nil, nil, 1) +add_node({"ethereal:swamp_dirt"}, 0.1, {"swamp"}, 1, 100, {"ethereal:fern"}, nil, nil, nil, 1) -- snow -add_node({"ethereal:cold_dirt", "default:dirt_with_coniferous_litter"}, 0.8, {"snowy"}, 4, 40, {"default:snow"}, nil, nil, nil, ethereal.snowy) -add_node({"default:dirt_with_snow"}, 0.8, {"alpine"}, 40, 140, {"default:snow"}, nil, nil, nil, ethereal.alpine) +add_node({"ethereal:cold_dirt"}, 0.8, {"snowy"}, 4, 40, {"default:snow"}, nil, nil, nil, 1) +add_node({"default:snow_dirt"}, 0.8, {"alpine"}, 40, 140, {"default:snow"}, nil, nil, nil, 1) --- wild onion -add_node({"default:dirt_with_grass"}, 0.25, {"grassy"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.grassy) -add_node({"default:dirt_with_grass"}, 0.25, {"grassytwo"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.grassytwo) -add_node({"default:dirt_with_grass"}, 0.25, {"jumble"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.jumble) -add_node({"ethereal:prairie_dirt"}, 0.25, {"prairie"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.prairie) - --- papyrus -add_node({"default:dirt_with_grass"}, 0.1, {"grassy"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.grassy) -add_node({"ethereal:jungle_dirt", "default:dirt_with_rainforest_litter"}, 0.1, {"junglee"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.junglee) -add_node({"default:dirt_with_grass"}, 0.1, {"swamp"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.swamp) +-- reeds +add_node({"ethereal:grass_dirt"}, 0.1, {"grassy"}, 1, 1, {"default:reeds"}, 4, "default:water_source", 1, 1) +add_node({"ethereal:jungle_dirt"}, 0.1, {"junglee"}, 1, 1, {"default:reeds"}, 4, "default:water_source", 1, 1) +add_node({"ethereal:swamp_dirt"}, 0.1, {"swamp"}, 1, 1, {"default:reeds"}, 4, "default:water_source", 1, 1) --= Farming Redo plants @@ -843,14 +619,14 @@ end -- place waterlily in beach areas local list = { - {"desert_ocean", ethereal.desert}, - {"plains_ocean", ethereal.plains}, - {"sandclay", ethereal.sandclay}, - {"sandstone_ocean", ethereal.sandstone}, - {"mesa_ocean", ethereal.mesa}, - {"grove_ocean", ethereal.grove}, - {"grassy_ocean", ethereal.grassy}, - {"swamp_ocean", ethereal.swamp}, + {"desert_ocean", 1}, + {"plains_ocean", 1}, + {"sandclay", 1}, + {"sandstone_ocean", 1}, + {"mesa_ocean", 1}, + {"grove_ocean", 1}, + {"grassy_ocean", 1}, + {"swamp_ocean", 1}, } for _, row in pairs(list) do @@ -882,67 +658,6 @@ end local random = math.random --- Generate Illumishroom in caves next to coal -minetest.register_on_generated(function(minp, maxp) - - if minp.y > -30 or maxp.y < -3000 then - return - end - - local bpos - local coal = minetest.find_nodes_in_area_under_air( - minp, maxp, "default:stone_with_coal") - - for n = 1, #coal do - - if random(1, 2) == 1 then - - bpos = {x = coal[n].x, y = coal[n].y + 1, z = coal[n].z } - - if bpos.y > -3000 and bpos.y < -2000 then - minetest.swap_node(bpos, {name = "ethereal:illumishroom3"}) - - elseif bpos.y > -2000 and bpos.y < -1000 then - minetest.swap_node(bpos, {name = "ethereal:illumishroom2"}) - - elseif bpos.y > -1000 and bpos.y < -30 then - minetest.swap_node(bpos, {name = "ethereal:illumishroom"}) - end - end - end -end) - --- coral reef (0.4.15 only) -if ethereal.reefs == 1 then - --- override corals so crystal shovel can pick them up intact -minetest.override_item("default:coral_skeleton", {groups = {crumbly = 3}}) -minetest.override_item("default:coral_orange", {groups = {crumbly = 3}}) -minetest.override_item("default:coral_brown", {groups = {crumbly = 3}}) - - minetest.register_decoration({ - deco_type = "schematic", - place_on = {"default:sand"}, - noise_params = { - offset = -0.15, - scale = 0.1, - spread = {x = 100, y = 100, z = 100}, - seed = 7013, - octaves = 3, - persist = 1, - }, - biomes = { - "desert_ocean", - "grove_ocean", - }, - y_min = -8, - y_max = -2, - schematic = path .. "corals.mts", - flags = "place_center_x, place_center_z", - rotation = "random", - }) -end - -- is baked clay mod active? add new flowers if so if minetest.get_modpath("bakedclay") then @@ -950,8 +665,7 @@ if minetest.get_modpath("bakedclay") then minetest.register_decoration({ deco_type = "simple", place_on = { - "ethereal:prairie_grass", "default:dirt_with_grass", - "ethereal:grove_dirt" + "ethereal:prairie_grass", "ethereal:grass_dirt" }, sidelen = 16, noise_params = { @@ -970,8 +684,7 @@ minetest.register_decoration({ minetest.register_decoration({ deco_type = "simple", place_on = { - "ethereal:prairie_grass", "default:dirt_with_grass", - "ethereal:grove_dirt", "ethereal:bamboo_dirt" + "ethereal:prairie_grass", "ethereal:grass_dirt", "ethereal:bamboo_dirt" }, sidelen = 16, noise_params = { @@ -989,7 +702,7 @@ minetest.register_decoration({ minetest.register_decoration({ deco_type = "simple", - place_on = {"ethereal:jungle_dirt", "default:dirt_with_rainforest_litter"}, + place_on = {"ethereal:jungle_dirt"}, sidelen = 16, noise_params = { offset = 0, @@ -1008,7 +721,7 @@ minetest.register_decoration({ minetest.register_decoration({ deco_type = "simple", - place_on = {"default:dirt_with_grass", "default:sand"}, + place_on = {"ethereal:grass_dirt", "default:sand"}, sidelen = 16, noise_params = { offset = 0, @@ -1044,7 +757,7 @@ local function register_fern_decoration(seed, length) name = "default:fern_" .. length, deco_type = "simple", place_on = { - "ethereal:cold_dirt", "default:dirt_with_coniferous_litter"}, + "ethereal:cold_dirt"}, sidelen = 16, noise_params = { offset = 0, @@ -1170,48 +883,6 @@ if ethereal.tundra and minetest.registered_nodes["default:permafrost"] then }) end -if minetest.get_modpath("butterflies") then -minetest.register_decoration({ - name = "butterflies:butterfly", - deco_type = "simple", - place_on = {"default:dirt_with_grass", "ethereal:prairie_dirt"}, - place_offset_y = 2, - sidelen = 80, - fill_ratio = 0.005, - biomes = {"grassy", "grassytwo", "prairie", "jumble"}, - y_max = 31000, - y_min = 1, - decoration = { - "butterflies:butterfly_white", - "butterflies:butterfly_red", - "butterflies:butterfly_violet" - }, - spawn_by = "group:flower", - num_spawn_by = 1 -}) -end - -if minetest.get_modpath("fireflies") then - minetest.register_decoration({ - name = "fireflies:firefly_low", - deco_type = "simple", - place_on = { - "default:dirt_with_grass", - "default:dirt_with_coniferous_litter", - "default:dirt_with_rainforest_litter", - "default:dirt", - "ethereal:cold_dirt", - }, - place_offset_y = 2, - sidelen = 80, - fill_ratio = 0.0005, - biomes = {"grassy", "grassytwo", "snowy", "junglee", "swamp"}, - y_max = 31000, - y_min = -1, - decoration = "fireflies:hidden_firefly", - }) -end - -- Coral Reef (Minetest 5.0) if minetest.registered_nodes["default:coral_green"] then minetest.register_decoration({ @@ -1260,7 +931,7 @@ if minetest.registered_nodes["default:coral_green"] then persist = 0.7 }, biomes = { - "frost_ocean", "grassy_ocean", "sandstone_ocean", "swamp_ocean"}, + "grassy_ocean", "sandstone_ocean", "swamp_ocean"}, y_max = -5, y_min = -10, flags = "force_placement",