Disabling ethereal biomes no longer shows error messages
This commit is contained in:
parent
7ee716e3b4
commit
56c6f0aef2
@ -15,6 +15,7 @@ Ethereal v7 Mapgen mod for Minetest
|
|||||||
- Fixed farming compatibility when using hoe on ethereal dirt
|
- Fixed farming compatibility when using hoe on ethereal dirt
|
||||||
- Dirt with dry grass turns into green grass when near water
|
- Dirt with dry grass turns into green grass when near water
|
||||||
- Ice or snow above sea level melts into river water
|
- Ice or snow above sea level melts into river water
|
||||||
|
- Disabling ethereal biomes no longer shows error messages
|
||||||
|
|
||||||
### 1.18
|
### 1.18
|
||||||
|
|
||||||
|
42
init.lua
42
init.lua
@ -1,6 +1,6 @@
|
|||||||
--[[
|
--[[
|
||||||
|
|
||||||
Minetest Ethereal Mod 1.19 (27th November 2015)
|
Minetest Ethereal Mod 1.19 (3rd December 2015)
|
||||||
|
|
||||||
Created by ChinChow
|
Created by ChinChow
|
||||||
|
|
||||||
@ -38,29 +38,29 @@ ethereal.sandclay = 1 -- Sand areas with clay underneath
|
|||||||
|
|
||||||
local path = minetest.get_modpath("ethereal")
|
local path = minetest.get_modpath("ethereal")
|
||||||
|
|
||||||
dofile(path.."/plantlife.lua")
|
dofile(path .. "/plantlife.lua")
|
||||||
dofile(path.."/mushroom.lua")
|
dofile(path .. "/mushroom.lua")
|
||||||
dofile(path.."/onion.lua")
|
dofile(path .. "/onion.lua")
|
||||||
dofile(path.."/crystal.lua")
|
dofile(path .. "/crystal.lua")
|
||||||
dofile(path.."/papyrus.lua")
|
dofile(path .. "/papyrus.lua")
|
||||||
dofile(path.."/flowers.lua")
|
dofile(path .. "/flowers.lua")
|
||||||
dofile(path.."/water.lua")
|
dofile(path .. "/water.lua")
|
||||||
dofile(path.."/dirt.lua")
|
dofile(path .. "/dirt.lua")
|
||||||
dofile(path.."/leaves.lua")
|
dofile(path .. "/leaves.lua")
|
||||||
dofile(path.."/wood.lua")
|
dofile(path .. "/wood.lua")
|
||||||
dofile(path.."/sapling.lua")
|
dofile(path .. "/sapling.lua")
|
||||||
dofile(path.."/strawberry.lua")
|
dofile(path .. "/strawberry.lua")
|
||||||
dofile(path.."/fishing.lua")
|
dofile(path .. "/fishing.lua")
|
||||||
dofile(path.."/extra.lua")
|
dofile(path .. "/extra.lua")
|
||||||
dofile(path.."/sealife.lua")
|
dofile(path .. "/sealife.lua")
|
||||||
dofile(path.."/fences.lua")
|
dofile(path .. "/fences.lua")
|
||||||
dofile(path.."/gates.lua")
|
dofile(path .. "/gates.lua")
|
||||||
dofile(path.."/mapgen_v7n.lua") -- 0.4.13+
|
dofile(path .. "/mapgen_v7n.lua") -- 0.4.13+
|
||||||
|
|
||||||
if minetest.get_modpath("xanadu") then
|
if minetest.get_modpath("xanadu") then
|
||||||
dofile(path.."/plantpack.lua")
|
dofile(path .. "/plantpack.lua")
|
||||||
else
|
else
|
||||||
dofile(path.."/stairs.lua")
|
dofile(path .. "/stairs.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
print ("[MOD] Ethereal mod loaded")
|
print ("[MOD] Ethereal mod loaded")
|
613
mapgen_v7n.lua
613
mapgen_v7n.lua
@ -41,16 +41,16 @@ minetest.register_ore({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
local path = minetest.get_modpath("ethereal").."/schematics/"
|
local path = minetest.get_modpath("ethereal") .. "/schematics/"
|
||||||
|
|
||||||
-- tree schematics
|
-- tree schematics
|
||||||
dofile(path.."apple_tree.lua")
|
dofile(path .. "apple_tree.lua")
|
||||||
dofile(path.."orange_tree.lua")
|
dofile(path .. "orange_tree.lua")
|
||||||
dofile(path.."banana_tree.lua")
|
dofile(path .. "banana_tree.lua")
|
||||||
dofile(path.."bamboo_tree.lua")
|
dofile(path .. "bamboo_tree.lua")
|
||||||
dofile(path.."birch_tree.lua")
|
dofile(path .. "birch_tree.lua")
|
||||||
dofile(path.."bush.lua")
|
dofile(path .. "bush.lua")
|
||||||
dofile(path.."waterlily.lua")
|
dofile(path .. "waterlily.lua")
|
||||||
|
|
||||||
--= Biomes (Minetest 0.4.13 and above)
|
--= Biomes (Minetest 0.4.13 and above)
|
||||||
|
|
||||||
@ -80,6 +80,9 @@ end
|
|||||||
add_biome("underground", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
add_biome("underground", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
||||||
-31000, -192, 50, 50, 1)
|
-31000, -192, 50, 50, 1)
|
||||||
|
|
||||||
|
add_biome("mountain", nil, "default:snow", 1, "default:snowblock", 2,
|
||||||
|
nil, nil, nil, nil, nil, 140, 31000, 50, 50, 1)
|
||||||
|
|
||||||
add_biome("desert", nil, "default:desert_sand", 1, "default:desert_sand", 3,
|
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, ethereal.desert)
|
||||||
|
|
||||||
@ -199,174 +202,72 @@ add_biome("sandclay", nil, "default:sand", 3, "default:clay", 2,
|
|||||||
|
|
||||||
--= schematic decorations
|
--= schematic decorations
|
||||||
|
|
||||||
|
local add_schem = function(a, b, c, d, e, f, g)
|
||||||
|
|
||||||
|
if g ~= 1 then return end
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = a,
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = b,
|
||||||
|
biomes = c,
|
||||||
|
y_min = d,
|
||||||
|
y_max = e,
|
||||||
|
schematic = f,
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- redwood tree
|
-- redwood tree
|
||||||
minetest.register_decoration({
|
add_schem({"bakedclay:orange"}, 0.0025, {"mesa"}, 1, 100, path .. "redwood.mts", ethereal.mesa)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = {"bakedclay:red"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.01,
|
|
||||||
biomes = {"mesa"},
|
|
||||||
schematic = path.."redwood.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- banana tree
|
-- banana tree
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:grove_dirt"}, 0.015, {"grove"}, 1, 100, ethereal.bananatree, ethereal.grove)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:grove_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.015,
|
|
||||||
biomes = {"grove"},
|
|
||||||
schematic = ethereal.bananatree,
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- healing tree
|
-- healing tree
|
||||||
minetest.register_decoration({
|
add_schem({"default:dirt_with_snow"}, 0.01, {"alpine"}, 120, 140, path .. "yellowtree.mts", ethereal.alpine)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "default:dirt_with_snow",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.01,
|
|
||||||
biomes = {"alpine"},
|
|
||||||
y_min = 120,
|
|
||||||
y_max = 140,
|
|
||||||
schematic = path.."yellowtree.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- crystal frost tree
|
-- crystal frost tree
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:crystal_dirt"}, 0.01, {"frost"}, 1, 100, path .. "frosttrees.mts", ethereal.frost)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:crystal_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.01,
|
|
||||||
biomes = {"frost"},
|
|
||||||
schematic = path.."frosttrees.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- giant mushroom
|
-- giant mushroom
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:mushroom_dirt"}, 0.02, {"mushroom"}, 1, 100, path .. "mushroomone.mts", ethereal.mushroom)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:mushroom_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.02,
|
|
||||||
biomes = {"mushroom"},
|
|
||||||
schematic = path.."mushroomone.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- small lava crater
|
-- small lava crater
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:fiery_dirt"}, 0.01, {"fiery"}, 1, 100, path .. "volcanom.mts", ethereal.fiery)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:fiery_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.01,
|
|
||||||
biomes = {"fiery"},
|
|
||||||
schematic = path.."volcanom.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- large lava crater
|
-- large lava crater
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:fiery_dirt"}, 0.01, {"fiery"}, 1, 100, path .. "volcanol.mts", ethereal.fiery)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:fiery_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.01,
|
|
||||||
biomes = {"fiery"},
|
|
||||||
schematic = path.."volcanol.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- jungle tree
|
-- jungle tree
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:jungle_dirt"}, 0.08, {"junglee"}, 1, 100, path .. "jungletree.mts", ethereal.junglee)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:jungle_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.08,
|
|
||||||
biomes = {"junglee"},
|
|
||||||
schematic = path.."jungletree.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- willow tree
|
-- willow tree
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:gray_dirt"}, 0.02, {"grayness"}, 1, 100, path .. "willow.mts", ethereal.grayness)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:gray_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.02,
|
|
||||||
biomes = {"grayness"},
|
|
||||||
schematic = path.."willow.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- pine tree
|
-- pine tree
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:cold_dirt"}, 0.025, {"snowy"}, 10, 40, path .. "pinetree.mts", ethereal.snowy)
|
||||||
deco_type = "schematic",
|
add_schem({"default:dirt_with_snow"}, 0.025, {"alpine"}, 40, 140, path .. "pinetree.mts", ethereal.alpine)
|
||||||
place_on = {"ethereal:cold_dirt", "default:dirt_with_snow"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.025,
|
|
||||||
biomes = {"snowy", "alpine"},
|
|
||||||
schematic = path.."pinetree.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- apple tree
|
-- apple tree
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:green_dirt"}, 0.03, {"grassy"}, 1, 100, ethereal.appletree, ethereal.grassy)
|
||||||
deco_type = "schematic",
|
add_schem({"ethereal:green_dirt"}, 0.03, {"jumble"}, 1, 100, ethereal.appletree, ethereal.jumble)
|
||||||
place_on = "ethereal:green_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.03,
|
|
||||||
biomes = {"grassy", "jumble"},
|
|
||||||
schematic = ethereal.appletree,
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- big old tree
|
-- big old tree
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:green_dirt"}, 0.0025, {"jumble"}, 1, 100, path .. "bigtree.mts", ethereal.jumble)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:green_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.0025,
|
|
||||||
biomes = {"jumble"},
|
|
||||||
schematic = path.."bigtree.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- birch tree (was apple)
|
-- birch tree
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:green_dirt"}, 0.03, {"grassytwo"}, 1, 100, ethereal.birchtree, ethereal.grassytwo)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = {"ethereal:green_dirt"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.03,
|
|
||||||
biomes = {"grassytwo"},
|
|
||||||
schematic = ethereal.birchtree,
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- orange tree
|
-- orange tree
|
||||||
minetest.register_decoration({
|
add_schem({"ethereal:prairie_dirt"}, 0.01, {"prairie"}, 1, 100, ethereal.orangetree, ethereal.prairie)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = {"ethereal:prairie_dirt"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.01,
|
|
||||||
biomes = {"prairie"},
|
|
||||||
schematic = ethereal.orangetree,
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- acacia tree
|
-- acacia tree
|
||||||
minetest.register_decoration({
|
add_schem({"default:dirt_with_dry_grass"}, 0.004, {"savannah"}, 1, 100, path .. "acaciatree.mts", ethereal.savannah)
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = {"default:dirt_with_dry_grass"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.004,
|
|
||||||
biomes = {"savannah"},
|
|
||||||
schematic = path.."acaciatree.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- large cactus (by Paramat)
|
-- large cactus (by Paramat)
|
||||||
|
if ethereal.desert == 1 then
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"default:desert_sand"},
|
place_on = {"default:desert_sand"},
|
||||||
@ -386,198 +287,107 @@ minetest.register_decoration({
|
|||||||
flags = "place_center_x", --, place_center_z",
|
flags = "place_center_x", --, place_center_z",
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- palm tree
|
-- palm tree
|
||||||
minetest.register_decoration({
|
add_schem({"default:sand"}, 0.0025, {"desert_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.desert)
|
||||||
deco_type = "schematic",
|
add_schem({"default:sand"}, 0.0025, {"plains_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.plains)
|
||||||
place_on = {"default:sand"},
|
add_schem({"default:sand"}, 0.0025, {"sandclay"}, 1, 1, path .. "palmtree.mts", ethereal.sandclay)
|
||||||
sidelen = 80,
|
add_schem({"default:sand"}, 0.0025, {"sandstone_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.sandstone)
|
||||||
fill_ratio = 0.0025,
|
add_schem({"default:sand"}, 0.0025, {"mesa_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.mesa)
|
||||||
biomes = {
|
add_schem({"default:sand"}, 0.0025, {"grove_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.grove)
|
||||||
"desert_ocean", "plains_ocean", "sandclay",
|
add_schem({"default:sand"}, 0.0025, {"grassy_ocean"}, 1, 1, path .. "palmtree.mts", ethereal.grassy)
|
||||||
"sandstone_ocean", "mesa_ocean", "grove_ocean", "grassy_ocean",
|
|
||||||
},
|
-- bamboo tree
|
||||||
y_min = 1,
|
add_schem({"ethereal:bamboo_dirt"}, 0.025, {"bamboo"}, 1, 100, ethereal.bambootree, ethereal.bamboo)
|
||||||
y_max = 1,
|
|
||||||
schematic = path.."palmtree.mts",
|
-- bush
|
||||||
flags = "place_center_x, place_center_z",
|
add_schem({"ethereal:bamboo_dirt"}, 0.08, {"bamboo"}, 1, 100, ethereal.bush, ethereal.bamboo)
|
||||||
rotation = "random",
|
|
||||||
})
|
|
||||||
|
|
||||||
--= simple decorations
|
--= simple decorations
|
||||||
|
|
||||||
|
local add_node = function(a, b, c, d, e, f, g, h, i, j)
|
||||||
|
|
||||||
|
if j ~= 1 then return end
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = a,
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = b,
|
||||||
|
biomes = c,
|
||||||
|
y_min = d,
|
||||||
|
y_max = e,
|
||||||
|
decoration = f,
|
||||||
|
height_max = g,
|
||||||
|
spawn_by = h,
|
||||||
|
num_spawn_by = i,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- scorched tree
|
-- scorched tree
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:dry_dirt"}, 0.006, {"plains"}, 1, 100, {"ethereal:scorched_tree"}, 6, nil, nil, ethereal.plains)
|
||||||
deco_type = "simple",
|
|
||||||
place_on = "ethereal:dry_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.006,
|
|
||||||
biomes = {"plains"},
|
|
||||||
decoration = "ethereal:scorched_tree",
|
|
||||||
height_max = 6,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- bamboo tree
|
|
||||||
minetest.register_decoration({
|
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:bamboo_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.025,
|
|
||||||
biomes = {"bamboo"},
|
|
||||||
schematic = ethereal.bambootree,
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- bush
|
|
||||||
minetest.register_decoration({
|
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = "ethereal:bamboo_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.08,
|
|
||||||
biomes = {"bamboo"},
|
|
||||||
schematic = ethereal.bush,
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- grass
|
|
||||||
minetest.register_decoration({
|
|
||||||
deco_type = "simple",
|
|
||||||
place_on = "ethereal:bamboo_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.35,
|
|
||||||
biomes = {"bamboo"},
|
|
||||||
decoration = {"default:grass_2", "default:grass_3"},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- dry shrub
|
-- dry shrub
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:dry_dirt"}, 0.015, {"plains"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.plains)
|
||||||
deco_type = "simple",
|
add_node({"default:sand"}, 0.015, {"grassy_ocean"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.grassy)
|
||||||
place_on = {
|
add_node({"default:desert_sand"}, 0.015, {"desert"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.desert)
|
||||||
"ethereal:dry_dirt", "default:sand", "default:desert_sand",
|
add_node({"default:sandstone"}, 0.015, {"sandstone"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.sandstone)
|
||||||
"sandstone", "bakedclay:red", "bakedclay:orange"
|
add_node({"bakedclay:red", "bakedclay:orange"}, 0.015, {"mesa"}, 1, 100, {"default:dry_shrub"}, nil, nil, nil, ethereal.mesa)
|
||||||
},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.015,
|
|
||||||
biomes = {"plains", "grassy_ocean", "desert", "sandstone", "mesa"},
|
|
||||||
decoration = "default:dry_shrub",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- dry grass
|
-- dry grass
|
||||||
minetest.register_decoration({
|
add_node({"default:dirt_with_dry_grass"}, 0.25, {"savannah"}, 1, 100, {"default:dry_grass_2",
|
||||||
deco_type = "simple",
|
"default:dry_grass_3", "default:dry_grass_4", "default:dry_grass_5"}, nil, nil, nil, ethereal.savannah)
|
||||||
place_on = {"default:dirt_with_dry_grass"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.25,
|
|
||||||
biomes = {"savannah"},
|
|
||||||
decoration = {
|
|
||||||
"default:dry_grass_2", "default:dry_grass_3",
|
|
||||||
"default:dry_grass_4", "default:dry_grass_5"
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- flowers & strawberry
|
-- flowers & strawberry
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:green_dirt"}, 0.025, {"grassy"}, 1, 100, {"flowers:dandelion_white",
|
||||||
deco_type = "simple",
|
"flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||||
place_on = "ethereal:green_dirt",
|
"flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.grassy)
|
||||||
sidelen = 80,
|
add_node({"ethereal:green_dirt"}, 0.025, {"grassytwo"}, 1, 100, {"flowers:dandelion_white",
|
||||||
fill_ratio = 0.025,
|
"flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||||
biomes = {"grassy", "grassy", "grassytwo"},
|
"flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.grassytwo)
|
||||||
decoration = {
|
|
||||||
"flowers:dandelion_white", "flowers:dandelion_yellow",
|
|
||||||
"flowers:geranium", "flowers:rose", "flowers:tulip",
|
|
||||||
"flowers:viola", "ethereal:strawberry_7"
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- prairie flowers & strawberry
|
-- prairie flowers & strawberry
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:prairie_dirt"}, 0.035, {"prairie"}, 1, 100, {"flowers:dandelion_white",
|
||||||
deco_type = "simple",
|
"flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||||
place_on = "ethereal:prairie_dirt",
|
"flowers:viola", "ethereal:strawberry_7"}, nil, nil, nil, ethereal.prairie)
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.035,
|
|
||||||
biomes = {"prairie"},
|
|
||||||
decoration = {
|
|
||||||
"flowers:dandelion_white", "flowers:dandelion_yellow",
|
|
||||||
"flowers:geranium", "flowers:rose", "flowers:tulip",
|
|
||||||
"flowers:viola", "ethereal:strawberry_7"
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- crystal spike & crystal grass
|
-- crystal spike & crystal grass
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:crystal_dirt"}, 0.02, {"frost"}, 1, 100, {"ethereal:crystal_spike",
|
||||||
deco_type = "simple",
|
"ethereal:crystalgrass"}, nil, nil, nil, ethereal.frost)
|
||||||
place_on = "ethereal:crystal_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.02,
|
|
||||||
biomes = {"frost"},
|
|
||||||
decoration = {"ethereal:crystal_spike", "ethereal:crystalgrass"},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- red shrub
|
-- red shrub
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:fiery_dirt"}, 0.20, {"fiery"}, 1, 100, {"ethereal:dry_shrub"}, nil, nil, nil, ethereal.fiery)
|
||||||
deco_type = "simple",
|
|
||||||
place_on = "ethereal:fiery_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.20,
|
|
||||||
biomes = {"fiery"},
|
|
||||||
decoration = {"ethereal:dry_shrub"},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- fire flower
|
-- fire flower
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:fiery_dirt"}, 0.02, {"fiery"}, 1, 100, {"ethereal:fire_flower"}, nil, nil, nil, ethereal.fiery)
|
||||||
deco_type = "simple",
|
|
||||||
place_on = "ethereal:fiery_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.02,
|
|
||||||
biomes = {"fiery"},
|
|
||||||
decoration = {"ethereal:fire_flower"},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- snowy grass
|
-- snowy grass
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:gray_dirt"}, 0.05, {"grayness"}, 1, 100, {"ethereal:snowygrass"}, nil, nil, nil, ethereal.grayness)
|
||||||
deco_type = "simple",
|
add_node({"ethereal:cold_dirt"}, 0.05, {"snowy"}, 1, 100, {"ethereal:snowygrass"}, nil, nil, nil, ethereal.snowy)
|
||||||
place_on = {"ethereal:gray_dirt", "ethereal:cold_dirt"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.05,
|
|
||||||
biomes = {"grayness", "snowy"},
|
|
||||||
decoration = "ethereal:snowygrass",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- cactus
|
-- cactus
|
||||||
minetest.register_decoration({
|
add_node({"default:sandstone"}, 0.0025, {"sandstone"}, 1, 100, {"default:cactus"}, 3, nil, nil, ethereal.sandstone)
|
||||||
deco_type = "simple",
|
add_node({"default:desert_sand"}, 0.005, {"desert"}, 1, 100, {"default:cactus"}, 4, nil, nil, ethereal.desert)
|
||||||
place_on = "default:sandstone",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.0025,
|
|
||||||
biomes = {"sandstone"},
|
|
||||||
decoration = "default:cactus",
|
|
||||||
height_max = 3,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_decoration({
|
-- wild red mushroom
|
||||||
deco_type = "simple",
|
add_node({"ethereal:mushroom_dirt"}, 0.01, {"mushroom"}, 1, 100, {"flowers:mushroom_fertile_red"}, nil, nil, nil, ethereal.mushroom)
|
||||||
place_on = "default:desert_sand",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.005,
|
|
||||||
biomes = {"desert"},
|
|
||||||
decoration = "default:cactus",
|
|
||||||
height_max = 4,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- wild mushrooms
|
local list = {
|
||||||
minetest.register_decoration({
|
{"junglee", "ethereal:jungle_dirt", ethereal.junglee},
|
||||||
deco_type = "simple",
|
{"grassy", "ethereal:green_dirt", ethereal.grassy},
|
||||||
place_on = "ethereal:mushroom_dirt",
|
{"grassytwo", "ethereal:green_dirt", ethereal.grassytwo},
|
||||||
sidelen = 80,
|
{"prairie", "ethereal:prairie_dirt", ethereal.prairie},
|
||||||
fill_ratio = 0.01,
|
{"mushroom", "ethereal:mushroom_dirt", ethereal.mushroom}
|
||||||
biomes = {"mushroom"},
|
}
|
||||||
decoration = "flowers:mushroom_fertile_red",
|
|
||||||
})
|
|
||||||
|
|
||||||
|
-- wild red and brown mushrooms
|
||||||
|
for _, row in ipairs(list) do
|
||||||
|
|
||||||
|
if row[3] == 1 then
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"ethereal:green_dirt", "ethereal:jungle_dirt",
|
place_on = {row[2]},
|
||||||
"ethereal:prairie_dirt", "ethereal:mushroom_dirt"},
|
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
noise_params = {
|
noise_params = {
|
||||||
offset = 0,
|
offset = 0,
|
||||||
@ -587,147 +397,113 @@ minetest.register_decoration({
|
|||||||
octaves = 3,
|
octaves = 3,
|
||||||
persist = 0.66
|
persist = 0.66
|
||||||
},
|
},
|
||||||
biomes = {"junglee", "grassy", "grassytwo", "prairie", "mushroom"},
|
biomes = {row[1]},
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 120,
|
y_max = 120,
|
||||||
decoration = {"flowers:mushroom_fertile_brown", "flowers:mushroom_fertile_red"},
|
decoration = {"flowers:mushroom_fertile_brown", "flowers:mushroom_fertile_red"},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
-- jungle grass
|
-- jungle grass
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:jungle_dirt"}, 0.15, {"junglee"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.junglee)
|
||||||
deco_type = "simple",
|
add_node({"ethereal:green_dirt"}, 0.15, {"jumble"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.jumble)
|
||||||
place_on = {"ethereal:jungle_dirt", "ethereal:green_dirt"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.15,
|
|
||||||
biomes = {"junglee", "jumble"},
|
|
||||||
decoration = "default:junglegrass",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- grass
|
-- grass
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:green_dirt"}, 0.35, {"grassy"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||||
deco_type = "simple",
|
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grassy)
|
||||||
place_on = {
|
add_node({"ethereal:green_dirt"}, 0.35, {"grassytwo"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||||
"ethereal:green_dirt_top", "ethereal:jungle_dirt",
|
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grassytwo)
|
||||||
"ethereal:prairie_dirt", "ethereal:grove_dirt"
|
add_node({"ethereal:green_dirt"}, 0.35, {"jumble"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||||
},
|
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.jumble)
|
||||||
sidelen = 80,
|
add_node({"ethereal:jungle_dirt"}, 0.35, {"junglee"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||||
fill_ratio = 0.35,
|
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.junglee)
|
||||||
biomes = {"grassy", "grassytwo", "jumble", "junglee", "prairie", "grove"},
|
add_node({"ethereal:prairie_dirt"}, 0.35, {"prairie"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||||
decoration = {
|
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.prairie)
|
||||||
"default:grass_2", "default:grass_3",
|
add_node({"ethereal:grove_dirt"}, 0.35, {"grove"}, 1, 100, {"default:grass_2", "default:grass_3",
|
||||||
"default:grass_4", "default:grass_5"
|
"default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grove)
|
||||||
},
|
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)
|
||||||
|
|
||||||
|
-- grass on sand
|
||||||
|
add_node({"default:sand"}, 0.25, {"sandclay"}, 3, 3, {"default:grass_2", "default:grass_3"}, nil, nil, nil, ethereal.sandclay)
|
||||||
|
|
||||||
-- ferns
|
-- ferns
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:grove_dirt"}, 0.2, {"grove"}, 1, 100, {"ethereal:fern"}, nil, nil, nil, ethereal.grove)
|
||||||
deco_type = "simple",
|
|
||||||
place_on = "ethereal:grove_dirt",
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.2,
|
|
||||||
biomes = {"grove"},
|
|
||||||
decoration = "ethereal:fern",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- snow
|
-- snow
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:cold_dirt"}, 0.8, {"snowy"}, 4, 40, {"default:snow"}, nil, nil, nil, ethereal.snowy)
|
||||||
deco_type = "simple",
|
add_node({"default:dirt_with_snow"}, 0.8, {"alpine"}, 40, 140, {"default:snow"}, nil, nil, nil, ethereal.alpine)
|
||||||
place_on = {"ethereal:cold_dirt", "default:dirt_with_snow"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.8,
|
|
||||||
biomes = {"snowy", "alpine"},
|
|
||||||
decoration = "default:snow",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- wild onion
|
-- wild onion
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:green_dirt"}, 0.25, {"grassy"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.grassy)
|
||||||
deco_type = "simple",
|
add_node({"ethereal:green_dirt"}, 0.25, {"grassytwo"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.grassytwo)
|
||||||
place_on = {"ethereal:green_dirt", "ethereal:prairie_dirt"},
|
add_node({"ethereal:green_dirt"}, 0.25, {"jumble"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.jumble)
|
||||||
sidelen = 80,
|
add_node({"ethereal:prairie_dirt"}, 0.25, {"prairie"}, 1, 100, {"ethereal:onion_4"}, nil, nil, nil, ethereal.prairie)
|
||||||
fill_ratio = 0.25,
|
|
||||||
biomes = {"grassy", "grassytwo", "jumble", "prairie"},
|
|
||||||
decoration = "ethereal:onion_4",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- papyrus
|
-- papyrus
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:green_dirt"}, 0.1, {"grassy"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.grassy)
|
||||||
deco_type = "simple",
|
add_node({"ethereal:jungle_dirt"}, 0.1, {"junglee"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.junglee)
|
||||||
place_on = {"ethereal:green_dirt", "ethereal:jungle_dirt"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.1,
|
|
||||||
biomes = {"grassy", "junglee"},
|
|
||||||
decoration = "default:papyrus",
|
|
||||||
height_max = 4,
|
|
||||||
spawn_by = "default:water_source",
|
|
||||||
num_spawn_by = 1,
|
|
||||||
})
|
|
||||||
|
|
||||||
--= Farming Redo plants
|
--= Farming Redo plants
|
||||||
|
|
||||||
if farming.mod and farming.mod == "redo" then
|
if farming and farming.mod and farming.mod == "redo" then
|
||||||
|
|
||||||
print ("[MOD] Ethereal - Farming Redo detected and in use")
|
print ("[MOD] Ethereal - Farming Redo detected and in use")
|
||||||
|
|
||||||
-- potato
|
-- potato
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:jungle_dirt"}, 0.035, {"junglee"}, 1, 100, {"farming:potato_3"}, nil, nil, nil, ethereal.junglee)
|
||||||
deco_type = "simple",
|
|
||||||
place_on = {"ethereal:jungle_dirt"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.035,
|
|
||||||
biomes = {"junglee"},
|
|
||||||
decoration = "farming:potato_3",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- carrot, cucumber, potato, tomato, corn, coffee, raspberry, rhubarb
|
-- carrot, cucumber, potato, tomato, corn, coffee, raspberry, rhubarb
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:green_dirt"}, 0.05, {"grassytwo"}, 1, 100, {"farming:carrot_7", "farming:cucumber_4",
|
||||||
deco_type = "simple",
|
"farming:potato_3", "farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||||
place_on = {"ethereal:green_dirt", "ethereal:prairie_dirt"},
|
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"}, nil, nil, nil, ethereal.grassytwo)
|
||||||
sidelen = 80,
|
add_node({"ethereal:green_dirt"}, 0.05, {"grassy"}, 1, 100, {"farming:carrot_7", "farming:cucumber_4",
|
||||||
fill_ratio = 0.05,
|
"farming:potato_3", "farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||||
biomes = {"grassy", "grassytwo", "prairie", "jumble"},
|
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"}, nil, nil, nil, ethereal.grassy)
|
||||||
decoration = {
|
add_node({"ethereal:green_dirt"}, 0.05, {"jumble"}, 1, 100, {"farming:carrot_7", "farming:cucumber_4",
|
||||||
"farming:carrot_7", "farming:cucumber_4", "farming:potato_3",
|
"farming:potato_3", "farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||||
"farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"}, nil, nil, nil, ethereal.jumble)
|
||||||
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"
|
add_node({"ethereal:prairie_dirt"}, 0.05, {"prairie"}, 1, 100, {"farming:carrot_7", "farming:cucumber_4",
|
||||||
},
|
"farming:potato_3", "farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||||
})
|
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"}, nil, nil, nil, ethereal.prairie)
|
||||||
|
|
||||||
-- melon and pumpkin
|
-- melon and pumpkin
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:jungle_dirt"}, 0.015, {"junglee"}, 1, 1, {"farming:melon_8", "farming:pumpkin_8"}, nil, "default:water_source", 1, ethereal.junglee)
|
||||||
deco_type = "simple",
|
add_node({"ethereal:green_dirt"}, 0.015, {"grassy"}, 1, 1, {"farming:melon_8", "farming:pumpkin_8"}, nil, "default:water_source", 1, ethereal.grassy)
|
||||||
place_on = {"ethereal:green_dirt", "ethereal:jungle_dirt"},
|
add_node({"ethereal:green_dirt"}, 0.015, {"grassytwo"}, 1, 1, {"farming:melon_8", "farming:pumpkin_8"}, nil, "default:water_source", 1, ethereal.grassytwo)
|
||||||
sidelen = 80,
|
add_node({"ethereal:green_dirt"}, 0.015, {"jumble"}, 1, 1, {"farming:melon_8", "farming:pumpkin_8"}, nil, "default:water_source", 1, ethereal.jumble)
|
||||||
fill_ratio = 0.015,
|
|
||||||
biomes = {"grassy", "grassytwo", "junglee", "jumble"},
|
|
||||||
decoration = {"farming:melon_8", "farming:pumpkin_8"},
|
|
||||||
spawn_by = "default:water_source",
|
|
||||||
num_spawn_by = 1,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- green beans
|
-- green beans
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:green_dirt"}, 0.035, {"grassytwo"}, 1, 100, {"farming:beanbush"}, nil, nil, nil, ethereal.grassytwo)
|
||||||
deco_type = "simple",
|
|
||||||
place_on = {"ethereal:green_dirt"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.035,
|
|
||||||
biomes = {"grassytwo"},
|
|
||||||
decoration = "farming:beanbush",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- grape bushel
|
-- grape bushel
|
||||||
minetest.register_decoration({
|
add_node({"ethereal:green_dirt"}, 0.025, {"grassytwo"}, 1, 100, {"farming:grapebush"}, nil, nil, nil, ethereal.grassytwo)
|
||||||
deco_type = "simple",
|
add_node({"ethereal:green_dirt"}, 0.025, {"grassy"}, 1, 100, {"farming:grapebush"}, nil, nil, nil, ethereal.grassy)
|
||||||
place_on = {"ethereal:green_dirt", "ethereal:prairie_dirt"},
|
add_node({"ethereal:prairie_dirt"}, 0.025, {"prairie"}, 1, 100, {"farming:grapebush"}, nil, nil, nil, ethereal.prairie)
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.025,
|
|
||||||
biomes = {"grassytwo", "grassy", "prairie"},
|
|
||||||
decoration = "farming:grapebush",
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- is waterlily in game?
|
-- is waterlily in game?
|
||||||
if minetest.registered_nodes["flowers:waterlily"] then
|
if minetest.registered_nodes["flowers:waterlily"] then
|
||||||
|
|
||||||
|
-- place in these 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},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, row in ipairs(list) do
|
||||||
|
|
||||||
|
if row[2] == 1 then
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"default:sand"},
|
place_on = {"default:sand"},
|
||||||
@ -740,13 +516,14 @@ if minetest.registered_nodes["flowers:waterlily"] then
|
|||||||
octaves = 3,
|
octaves = 3,
|
||||||
persist = 0.7
|
persist = 0.7
|
||||||
},
|
},
|
||||||
biomes = {
|
biomes = {row[1]},
|
||||||
"desert_ocean", "plains_ocean", "sandclay",
|
|
||||||
"sandstone_ocean", "mesa_ocean", "grove_ocean", "grassy_ocean",
|
|
||||||
},
|
|
||||||
y_min = 0,
|
y_min = 0,
|
||||||
y_max = 0,
|
y_max = 0,
|
||||||
schematic = ethereal.waterlily,
|
schematic = ethereal.waterlily,
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
752
mapgen_v7n_old.lua
Normal file
752
mapgen_v7n_old.lua
Normal file
@ -0,0 +1,752 @@
|
|||||||
|
-- clear default mapgen biomes and decorations
|
||||||
|
minetest.clear_registered_biomes()
|
||||||
|
minetest.clear_registered_decorations()
|
||||||
|
|
||||||
|
-- register ore's
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "blob",
|
||||||
|
ore = "bakedclay:red",
|
||||||
|
wherein = {"bakedclay:orange"},
|
||||||
|
clust_scarcity = 4 * 4 * 4,
|
||||||
|
clust_num_ores = 8,
|
||||||
|
clust_size = 6,
|
||||||
|
y_min = -10,
|
||||||
|
y_max = 71,
|
||||||
|
noise_params = {
|
||||||
|
offset = 0.35,
|
||||||
|
scale = 0.2,
|
||||||
|
spread = {x = 5, y = 5, z = 5},
|
||||||
|
seed = -316,
|
||||||
|
octaves = 1,
|
||||||
|
persist = 0.5
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "blob",
|
||||||
|
ore = "bakedclay:grey",
|
||||||
|
wherein = {"bakedclay:orange"},
|
||||||
|
clust_scarcity = 4 * 4 * 4,
|
||||||
|
clust_num_ores = 8,
|
||||||
|
clust_size = 6,
|
||||||
|
y_min = -10,
|
||||||
|
y_max = 71,
|
||||||
|
noise_params = {
|
||||||
|
offset = 0.35,
|
||||||
|
scale = 0.2,
|
||||||
|
spread = {x = 5, y = 5, z = 5},
|
||||||
|
seed = -613,
|
||||||
|
octaves = 1,
|
||||||
|
persist = 0.5
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
local path = minetest.get_modpath("ethereal") .. "/schematics/"
|
||||||
|
|
||||||
|
-- tree schematics
|
||||||
|
dofile(path .. "apple_tree.lua")
|
||||||
|
dofile(path .. "orange_tree.lua")
|
||||||
|
dofile(path .. "banana_tree.lua")
|
||||||
|
dofile(path .. "bamboo_tree.lua")
|
||||||
|
dofile(path .. "birch_tree.lua")
|
||||||
|
dofile(path .. "bush.lua")
|
||||||
|
dofile(path .. "waterlily.lua")
|
||||||
|
|
||||||
|
--= Biomes (Minetest 0.4.13 and above)
|
||||||
|
|
||||||
|
local add_biome = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
|
||||||
|
|
||||||
|
if p ~= 1 then return end
|
||||||
|
|
||||||
|
minetest.register_biome({
|
||||||
|
name = a,
|
||||||
|
node_dust = b,
|
||||||
|
node_top = c,
|
||||||
|
depth_top = d,
|
||||||
|
node_filler = e,
|
||||||
|
depth_filler = f,
|
||||||
|
node_stone = g,
|
||||||
|
node_water_top = h,
|
||||||
|
depth_water_top = i,
|
||||||
|
node_water = j,
|
||||||
|
node_river_water = k,
|
||||||
|
y_min = l,
|
||||||
|
y_max = m,
|
||||||
|
heat_point = n,
|
||||||
|
humidity_point = o,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
add_biome("underground", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
||||||
|
-31000, -192, 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)
|
||||||
|
|
||||||
|
add_biome("desert_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
"default:desert_stone", nil, nil, nil, nil, -192, 3, 35, 20, ethereal.desert)
|
||||||
|
|
||||||
|
add_biome("glacier", "default:snowblock", "default:snowblock", 1,
|
||||||
|
"default:snowblock", 3, "default:ice", "default:ice", 10, -8, 31000, 0, 50, ethereal.glacier)
|
||||||
|
|
||||||
|
add_biome("glacier_ocean", "default:snowblock", "default:sand", 1, "default:sand", 3,
|
||||||
|
nil, nil, nil, nil, nil, -112, -9, 0, 50, ethereal.glacier)
|
||||||
|
|
||||||
|
add_biome("bamboo", nil, "ethereal:bamboo_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 3, 71, 45, 75, ethereal.bamboo)
|
||||||
|
|
||||||
|
add_biome("bamboo_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 2, 45, 75, ethereal.bamboo)
|
||||||
|
|
||||||
|
add_biome("mesa", nil, "bakedclay:orange", 1, "bakedclay:orange", 15,
|
||||||
|
nil, nil, nil, nil, nil, 1, 71, 25, 28, ethereal.mesa)
|
||||||
|
|
||||||
|
add_biome("mesa_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 1, 25, 28, ethereal.mesa)
|
||||||
|
|
||||||
|
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("snowy", nil, "ethereal:cold_dirt", 1, "default:dirt", 2,
|
||||||
|
nil, nil, nil, nil, nil, 4, 40, 10, 40, ethereal.snowy)
|
||||||
|
|
||||||
|
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, "ethereal:green_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 3, 91, 13, 40, ethereal.grassy)
|
||||||
|
|
||||||
|
add_biome("grassy_ocean", nil, "defaut:sand", 2, "default:gravel", 1,
|
||||||
|
nil, nil, nil, nil, nil, -31000, 3, 13, 40, ethereal.grassy)
|
||||||
|
|
||||||
|
add_biome("caves", nil, "default:desert_stone", 3, "air", 8,
|
||||||
|
nil, nil, nil, nil, nil, 4, 41, 15, 25, ethereal.caves)
|
||||||
|
|
||||||
|
add_biome("grayness", nil, "ethereal:gray_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 2, 41, 15, 30, ethereal.grayness)
|
||||||
|
|
||||||
|
add_biome("grayness_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 1, 15, 30, ethereal.grayness)
|
||||||
|
|
||||||
|
add_biome("grassytwo", nil, "ethereal:green_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 1, 91, 15, 40, ethereal.grassytwo)
|
||||||
|
|
||||||
|
add_biome("grassytwo_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 1, 15, 40, ethereal.grassytwo)
|
||||||
|
|
||||||
|
add_biome("prairie", nil, "ethereal:prairie_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 3, 26, 20, 40, ethereal.prairie)
|
||||||
|
|
||||||
|
add_biome("prairie_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 1, 20, 40, ethereal.prairie)
|
||||||
|
|
||||||
|
add_biome("jumble", nil, "ethereal:green_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 1, 71, 25, 50, ethereal.jumble)
|
||||||
|
|
||||||
|
add_biome("jumble_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 1, 25, 50, ethereal.jumble)
|
||||||
|
|
||||||
|
add_biome("junglee", nil, "ethereal:jungle_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 1, 71, 30, 60, ethereal.junglee)
|
||||||
|
|
||||||
|
add_biome("junglee_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 1, 30, 60, ethereal.junglee)
|
||||||
|
|
||||||
|
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_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 2, 45, 35, ethereal.grove)
|
||||||
|
|
||||||
|
add_biome("mushroom", nil, "ethereal:mushroom_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 3, 50, 45, 55, ethereal.mushroom)
|
||||||
|
|
||||||
|
add_biome("mushroom_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 2, 45, 55, ethereal.mushroom)
|
||||||
|
|
||||||
|
add_biome("sandstone", nil, "default:sandstone", 1, "default:sandstone", 1,
|
||||||
|
"default:sandstone", nil, nil, nil, nil, 3, 23, 50, 20, ethereal.sandstone)
|
||||||
|
|
||||||
|
add_biome("sandstone_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 2, 50, 20, ethereal.sandstone)
|
||||||
|
|
||||||
|
add_biome("quicksand", nil, "ethereal:quicksand2", 3, "default:gravel", 1,
|
||||||
|
nil, nil, nil, nil, nil, 1, 1, 50, 38, ethereal.quicksand)
|
||||||
|
|
||||||
|
add_biome("plains", nil, "ethereal:dry_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 3, 25, 65, 25, ethereal.plains)
|
||||||
|
|
||||||
|
add_biome("plains_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 2, 55, 25, ethereal.plains)
|
||||||
|
|
||||||
|
add_biome("savannah", nil, "default:dirt_with_dry_grass", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 3, 50, 55, 25, ethereal.savannah)
|
||||||
|
|
||||||
|
add_biome("savannah_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 1, 55, 25, ethereal.savannah)
|
||||||
|
|
||||||
|
add_biome("fiery", nil, "ethereal:fiery_dirt", 1, "default:dirt", 3,
|
||||||
|
nil, nil, nil, nil, nil, 5, 20, 75, 10, ethereal.fiery)
|
||||||
|
|
||||||
|
add_biome("fiery_ocean", nil, "default:sand", 1, "default:sand", 2,
|
||||||
|
nil, nil, nil, nil, nil, -192, 4, 75, 10, ethereal.fiery)
|
||||||
|
|
||||||
|
add_biome("sandclay", nil, "default:sand", 3, "default:clay", 2,
|
||||||
|
nil, nil, nil, nil, nil, 1, 11, 65, 2, ethereal.sandclay)
|
||||||
|
|
||||||
|
--= schematic decorations
|
||||||
|
|
||||||
|
-- redwood tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = {"bakedclay:red"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.01,
|
||||||
|
biomes = {"mesa"},
|
||||||
|
schematic = path.."redwood.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- banana tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:grove_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.015,
|
||||||
|
biomes = {"grove"},
|
||||||
|
schematic = ethereal.bananatree,
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- healing tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "default:dirt_with_snow",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.01,
|
||||||
|
biomes = {"alpine"},
|
||||||
|
y_min = 120,
|
||||||
|
y_max = 140,
|
||||||
|
schematic = path.."yellowtree.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- crystal frost tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:crystal_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.01,
|
||||||
|
biomes = {"frost"},
|
||||||
|
schematic = path.."frosttrees.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- giant mushroom
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:mushroom_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.02,
|
||||||
|
biomes = {"mushroom"},
|
||||||
|
schematic = path.."mushroomone.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- small lava crater
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:fiery_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.01,
|
||||||
|
biomes = {"fiery"},
|
||||||
|
schematic = path.."volcanom.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- large lava crater
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:fiery_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.01,
|
||||||
|
biomes = {"fiery"},
|
||||||
|
schematic = path.."volcanol.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- jungle tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:jungle_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.08,
|
||||||
|
biomes = {"junglee"},
|
||||||
|
schematic = path.."jungletree.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- willow tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:gray_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.02,
|
||||||
|
biomes = {"grayness"},
|
||||||
|
schematic = path.."willow.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- pine tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = {"ethereal:cold_dirt", "default:dirt_with_snow"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.025,
|
||||||
|
biomes = {"snowy", "alpine"},
|
||||||
|
schematic = path.."pinetree.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- apple tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:green_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.03,
|
||||||
|
biomes = {"grassy", "jumble"},
|
||||||
|
schematic = ethereal.appletree,
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- big old tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:green_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.0025,
|
||||||
|
biomes = {"jumble"},
|
||||||
|
schematic = path.."bigtree.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- birch tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = {"ethereal:green_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.03,
|
||||||
|
biomes = {"grassytwo"},
|
||||||
|
schematic = ethereal.birchtree,
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- orange tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = {"ethereal:prairie_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.01,
|
||||||
|
biomes = {"prairie"},
|
||||||
|
schematic = ethereal.orangetree,
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- acacia tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = {"default:dirt_with_dry_grass"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.004,
|
||||||
|
biomes = {"savannah"},
|
||||||
|
schematic = path.."acaciatree.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- large cactus (by Paramat)
|
||||||
|
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 = path.."large_cactus.mts",
|
||||||
|
flags = "place_center_x", --, place_center_z",
|
||||||
|
rotation = "random",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- palm tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = {"default:sand"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.0025,
|
||||||
|
biomes = {
|
||||||
|
"desert_ocean", "plains_ocean", "sandclay",
|
||||||
|
"sandstone_ocean", "mesa_ocean", "grove_ocean", "grassy_ocean",
|
||||||
|
},
|
||||||
|
y_min = 1,
|
||||||
|
y_max = 1,
|
||||||
|
schematic = path.."palmtree.mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
rotation = "random",
|
||||||
|
})
|
||||||
|
|
||||||
|
--= simple decorations
|
||||||
|
|
||||||
|
-- scorched tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "ethereal:dry_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.006,
|
||||||
|
biomes = {"plains"},
|
||||||
|
decoration = "ethereal:scorched_tree",
|
||||||
|
height_max = 6,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- bamboo tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:bamboo_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.025,
|
||||||
|
biomes = {"bamboo"},
|
||||||
|
schematic = ethereal.bambootree,
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- bush
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = "ethereal:bamboo_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.08,
|
||||||
|
biomes = {"bamboo"},
|
||||||
|
schematic = ethereal.bush,
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- grass
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "ethereal:bamboo_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.35,
|
||||||
|
biomes = {"bamboo"},
|
||||||
|
decoration = {"default:grass_2", "default:grass_3"},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- dry shrub
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {
|
||||||
|
"ethereal:dry_dirt", "default:sand", "default:desert_sand",
|
||||||
|
"sandstone", "bakedclay:red", "bakedclay:orange"
|
||||||
|
},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.015,
|
||||||
|
biomes = {"plains", "grassy_ocean", "desert", "sandstone", "mesa"},
|
||||||
|
decoration = "default:dry_shrub",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- dry grass
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:dirt_with_dry_grass"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.25,
|
||||||
|
biomes = {"savannah"},
|
||||||
|
decoration = {
|
||||||
|
"default:dry_grass_2", "default:dry_grass_3",
|
||||||
|
"default:dry_grass_4", "default:dry_grass_5"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- flowers & strawberry
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "ethereal:green_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.025,
|
||||||
|
biomes = {"grassy", "grassy", "grassytwo"},
|
||||||
|
decoration = {
|
||||||
|
"flowers:dandelion_white", "flowers:dandelion_yellow",
|
||||||
|
"flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||||
|
"flowers:viola", "ethereal:strawberry_7"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- prairie flowers & strawberry
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "ethereal:prairie_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.035,
|
||||||
|
biomes = {"prairie"},
|
||||||
|
decoration = {
|
||||||
|
"flowers:dandelion_white", "flowers:dandelion_yellow",
|
||||||
|
"flowers:geranium", "flowers:rose", "flowers:tulip",
|
||||||
|
"flowers:viola", "ethereal:strawberry_7"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- crystal spike & crystal grass
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "ethereal:crystal_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.02,
|
||||||
|
biomes = {"frost"},
|
||||||
|
decoration = {"ethereal:crystal_spike", "ethereal:crystalgrass"},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- red shrub
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "ethereal:fiery_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.20,
|
||||||
|
biomes = {"fiery"},
|
||||||
|
decoration = {"ethereal:dry_shrub"},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- fire flower
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "ethereal:fiery_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.02,
|
||||||
|
biomes = {"fiery"},
|
||||||
|
decoration = {"ethereal:fire_flower"},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- snowy grass
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:gray_dirt", "ethereal:cold_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.05,
|
||||||
|
biomes = {"grayness", "snowy"},
|
||||||
|
decoration = "ethereal:snowygrass",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- cactus
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "default:sandstone",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.0025,
|
||||||
|
biomes = {"sandstone"},
|
||||||
|
decoration = "default:cactus",
|
||||||
|
height_max = 3,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "default:desert_sand",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.005,
|
||||||
|
biomes = {"desert"},
|
||||||
|
decoration = "default:cactus",
|
||||||
|
height_max = 4,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- wild mushrooms
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "ethereal:mushroom_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.01,
|
||||||
|
biomes = {"mushroom"},
|
||||||
|
decoration = "flowers:mushroom_fertile_red",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:green_dirt", "ethereal:jungle_dirt",
|
||||||
|
"ethereal:prairie_dirt", "ethereal:mushroom_dirt"},
|
||||||
|
sidelen = 16,
|
||||||
|
noise_params = {
|
||||||
|
offset = 0,
|
||||||
|
scale = 0.009,
|
||||||
|
spread = {x = 200, y = 200, z = 200},
|
||||||
|
seed = 2,
|
||||||
|
octaves = 3,
|
||||||
|
persist = 0.66
|
||||||
|
},
|
||||||
|
biomes = {"junglee", "grassy", "grassytwo", "prairie", "mushroom"},
|
||||||
|
y_min = 1,
|
||||||
|
y_max = 120,
|
||||||
|
decoration = {"flowers:mushroom_fertile_brown", "flowers:mushroom_fertile_red"},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- jungle grass
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:jungle_dirt", "ethereal:green_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.15,
|
||||||
|
biomes = {"junglee", "jumble"},
|
||||||
|
decoration = "default:junglegrass",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- grass
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {
|
||||||
|
"ethereal:green_dirt_top", "ethereal:jungle_dirt",
|
||||||
|
"ethereal:prairie_dirt", "ethereal:grove_dirt"
|
||||||
|
},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.35,
|
||||||
|
biomes = {"grassy", "grassytwo", "jumble", "junglee", "prairie", "grove"},
|
||||||
|
decoration = {
|
||||||
|
"default:grass_2", "default:grass_3",
|
||||||
|
"default:grass_4", "default:grass_5"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- ferns
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "ethereal:grove_dirt",
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.2,
|
||||||
|
biomes = {"grove"},
|
||||||
|
decoration = "ethereal:fern",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- snow
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:cold_dirt", "default:dirt_with_snow"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.8,
|
||||||
|
biomes = {"snowy", "alpine"},
|
||||||
|
decoration = "default:snow",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- wild onion
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:green_dirt", "ethereal:prairie_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.25,
|
||||||
|
biomes = {"grassy", "grassytwo", "jumble", "prairie"},
|
||||||
|
decoration = "ethereal:onion_4",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- papyrus
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:green_dirt", "ethereal:jungle_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.1,
|
||||||
|
biomes = {"grassy", "junglee"},
|
||||||
|
decoration = "default:papyrus",
|
||||||
|
height_max = 4,
|
||||||
|
spawn_by = "default:water_source",
|
||||||
|
num_spawn_by = 1,
|
||||||
|
})
|
||||||
|
|
||||||
|
--= Farming Redo plants
|
||||||
|
|
||||||
|
if farming and farming.mod and farming.mod == "redo" then
|
||||||
|
|
||||||
|
print ("[MOD] Ethereal - Farming Redo detected and in use")
|
||||||
|
|
||||||
|
-- potato
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:jungle_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.035,
|
||||||
|
biomes = {"junglee"},
|
||||||
|
decoration = "farming:potato_3",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- carrot, cucumber, potato, tomato, corn, coffee, raspberry, rhubarb
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:green_dirt", "ethereal:prairie_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.05,
|
||||||
|
biomes = {"grassy", "grassytwo", "prairie", "jumble"},
|
||||||
|
decoration = {
|
||||||
|
"farming:carrot_7", "farming:cucumber_4", "farming:potato_3",
|
||||||
|
"farming:tomato_7", "farming:corn_8", "farming:coffee_5",
|
||||||
|
"farming:raspberry_4", "farming:rhubarb_3", "farming:blueberry_4"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- melon and pumpkin
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:green_dirt", "ethereal:jungle_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.015,
|
||||||
|
biomes = {"grassy", "grassytwo", "junglee", "jumble"},
|
||||||
|
decoration = {"farming:melon_8", "farming:pumpkin_8"},
|
||||||
|
spawn_by = "default:water_source",
|
||||||
|
num_spawn_by = 1,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- green beans
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:green_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.035,
|
||||||
|
biomes = {"grassytwo"},
|
||||||
|
decoration = "farming:beanbush",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- grape bushel
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"ethereal:green_dirt", "ethereal:prairie_dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.025,
|
||||||
|
biomes = {"grassytwo", "grassy", "prairie"},
|
||||||
|
decoration = "farming:grapebush",
|
||||||
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
-- is waterlily in game?
|
||||||
|
if minetest.registered_nodes["flowers:waterlily"] then
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = {"default:sand"},
|
||||||
|
sidelen = 16,
|
||||||
|
noise_params = {
|
||||||
|
offset = -0.12,
|
||||||
|
scale = 0.3,
|
||||||
|
spread = {x = 200, y = 200, z = 200},
|
||||||
|
seed = 33,
|
||||||
|
octaves = 3,
|
||||||
|
persist = 0.7
|
||||||
|
},
|
||||||
|
biomes = {
|
||||||
|
"desert_ocean", "plains_ocean", "sandclay",
|
||||||
|
"sandstone_ocean", "mesa_ocean", "grove_ocean", "grassy_ocean",
|
||||||
|
},
|
||||||
|
y_min = 0,
|
||||||
|
y_max = 0,
|
||||||
|
schematic = ethereal.waterlily,
|
||||||
|
rotation = "random",
|
||||||
|
})
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user