2015-04-10 17:38:53 +03:00
|
|
|
-- clear default mapgen biomes and decorations
|
2015-01-20 18:09:07 +03:00
|
|
|
minetest.clear_registered_biomes()
|
|
|
|
minetest.clear_registered_decorations()
|
2015-04-09 11:41:15 +03:00
|
|
|
|
2015-04-25 14:41:36 +03:00
|
|
|
-- tree schematics
|
|
|
|
dofile(minetest.get_modpath("ethereal").."/schematics/apple_tree.lua")
|
|
|
|
dofile(minetest.get_modpath("ethereal").."/schematics/orange_tree.lua")
|
|
|
|
dofile(minetest.get_modpath("ethereal").."/schematics/banana_tree.lua")
|
|
|
|
|
2015-03-24 12:23:05 +03:00
|
|
|
-- Biomes (for 0.4.12 with new changes from Paramat)
|
2015-04-10 17:38:53 +03:00
|
|
|
if ethereal.icewater == 1 then
|
|
|
|
minetest.register_biome({
|
|
|
|
name = "icewater",
|
|
|
|
node_top = "default:sand",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:sand",
|
|
|
|
depth_filler = 1,
|
|
|
|
node_water_top = "default:ice",
|
|
|
|
depth_water_top = 2,
|
|
|
|
y_min = -31000,
|
|
|
|
y_max = 1,
|
|
|
|
heat_point = 0,
|
|
|
|
humidity_point = 0,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2015-01-20 18:09:07 +03:00
|
|
|
if ethereal.bamboo == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "bamboo",
|
|
|
|
node_top = "ethereal:bamboo_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 71,
|
|
|
|
heat_point = 45,
|
|
|
|
humidity_point = 75,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.mesa == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "mesa",
|
|
|
|
node_top = "bakedclay:red",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "bakedclay:orange",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 2,
|
|
|
|
y_max = 71,
|
|
|
|
heat_point = 25,
|
|
|
|
humidity_point = 28,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.alpine == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "alpine",
|
|
|
|
node_top = "default:dirt_with_snow",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 2,
|
|
|
|
y_min = 40,
|
|
|
|
y_max = 90,
|
|
|
|
heat_point = 10,
|
|
|
|
humidity_point = 40,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.healing == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "healing",
|
|
|
|
node_top = "default:dirt_with_snow",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 2,
|
|
|
|
y_min = 75,
|
|
|
|
y_max = 140,
|
|
|
|
heat_point = 10,
|
|
|
|
humidity_point = 40,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.snowy == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "snowy",
|
|
|
|
node_top = "ethereal:cold_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 2,
|
|
|
|
y_min = 5,
|
|
|
|
y_max = 40,
|
|
|
|
heat_point = 10,
|
|
|
|
humidity_point = 40,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.frost == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "frost",
|
|
|
|
node_top = "ethereal:crystal_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 71,
|
|
|
|
heat_point = 10,
|
|
|
|
humidity_point = 40,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.grassy == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "grassy",
|
|
|
|
node_top = "ethereal:green_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 91,
|
|
|
|
heat_point = 13,
|
|
|
|
humidity_point = 40,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.caves == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "caves",
|
|
|
|
node_top = "default:desert_stone",
|
|
|
|
depth_top = 3,
|
|
|
|
node_filler = "air",
|
|
|
|
depth_filler = 8,
|
|
|
|
y_min = 4,
|
|
|
|
y_max = 41,
|
|
|
|
heat_point = 15,
|
|
|
|
humidity_point = 25,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.grayness == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "grayness",
|
|
|
|
node_top = "ethereal:gray_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 41,
|
|
|
|
heat_point = 15,
|
|
|
|
humidity_point = 30,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.grassytwo == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "grassytwo",
|
|
|
|
node_top = "ethereal:green_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 91,
|
|
|
|
heat_point = 15,
|
|
|
|
humidity_point = 40,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.prairie == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "prairie",
|
|
|
|
node_top = "ethereal:prairie_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 3,
|
|
|
|
y_max = 26,
|
|
|
|
heat_point = 20,
|
|
|
|
humidity_point = 40,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.jumble == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "jumble",
|
|
|
|
node_top = "ethereal:green_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 71,
|
|
|
|
heat_point = 25,
|
|
|
|
humidity_point = 50,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.junglee == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "junglee",
|
|
|
|
node_top = "ethereal:jungle_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 71,
|
|
|
|
heat_point = 30,
|
|
|
|
humidity_point = 60,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.desert ==1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "desert",
|
|
|
|
node_top = "default:desert_sand",
|
|
|
|
depth_top = 5,
|
|
|
|
node_filler = "default:desert_stone",
|
|
|
|
depth_filler = 70,
|
|
|
|
y_min = 3,
|
|
|
|
y_max = 23,
|
|
|
|
heat_point = 35,
|
|
|
|
humidity_point = 20,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.grove == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "grove",
|
|
|
|
node_top = "ethereal:grove_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler= 5,
|
|
|
|
y_min = 3,
|
|
|
|
y_max = 23,
|
|
|
|
heat_point = 40,
|
|
|
|
humidity_point = 60,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.mushroom == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "mushroom",
|
|
|
|
node_top = "ethereal:mushroom_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 50,
|
|
|
|
heat_point = 45,
|
|
|
|
humidity_point = 65,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.desertstone == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "desertstone",
|
|
|
|
node_top = "default:sandstone",
|
|
|
|
depth_top = 7,
|
|
|
|
node_filler = "default:desert_stone",
|
|
|
|
depth_filler = 70,
|
|
|
|
y_min = 3,
|
|
|
|
y_max = 23,
|
|
|
|
heat_point = 50,
|
|
|
|
humidity_point = 20,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.quicksand == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "quicksand",
|
|
|
|
node_top = "ethereal:quicksand2",
|
|
|
|
depth_top = 3,
|
|
|
|
node_filler = "default:gravel",
|
|
|
|
depth_filler = 1,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 1,
|
|
|
|
heat_point = 50,
|
|
|
|
humidity_point = 38,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.lake == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "lake",
|
|
|
|
node_top = "default:sand",
|
|
|
|
depth_top = 2,
|
|
|
|
node_filler = "default:gravel",
|
|
|
|
depth_filler = 1,
|
|
|
|
node_water = "default:water_source",
|
|
|
|
node_dust_water = "default:water_source",
|
|
|
|
y_min = -31000,
|
|
|
|
y_max = 3,
|
|
|
|
heat_point = 50,
|
|
|
|
humidity_point = 40,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.plains == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "plains",
|
|
|
|
node_top = "ethereal:dry_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 3,
|
|
|
|
y_max = 61,
|
|
|
|
heat_point = 55,
|
|
|
|
humidity_point = 25,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.fiery == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "fiery",
|
|
|
|
node_top = "ethereal:fiery_dirt",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 5,
|
|
|
|
y_min = 5,
|
|
|
|
y_max = 65,
|
|
|
|
heat_point = 80,
|
|
|
|
humidity_point = 10,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if ethereal.sandclay == 1 then
|
|
|
|
minetest.register_biome({
|
2015-04-10 17:38:53 +03:00
|
|
|
name = "sandclay",
|
|
|
|
node_top = "default:sand",
|
|
|
|
depth_top = 3,
|
|
|
|
node_filler = "default:clay",
|
|
|
|
depth_filler = 2,
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 11,
|
|
|
|
heat_point = 65,
|
|
|
|
humidity_point = 2,
|
2015-01-20 18:09:07 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
--= schematic decorations
|
|
|
|
|
2015-01-20 18:09:07 +03:00
|
|
|
local path = minetest.get_modpath("ethereal").."/schematics/"
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- redwood tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"bakedclay:red","bakedclay:orange"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.01,
|
|
|
|
biomes = {"mesa"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."redwood.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- banana tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "ethereal:grove_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.015,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"grove"},
|
2015-04-25 14:41:36 +03:00
|
|
|
schematic = ethereal.bananatree,
|
2015-01-20 18:09:07 +03:00
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- healing tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "default:dirt_with_snow",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.04,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"healing"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."yellowtree.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- crystal frost tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "ethereal:crystal_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.01,
|
|
|
|
biomes = {"frost"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."frosttrees.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- giant mushroom
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "ethereal:mushroom_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.07,
|
|
|
|
biomes = {"mushroom"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."mushroomone.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- small lava crater
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "ethereal:fiery_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.012,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"fiery"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."volcanom.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- large lava crater
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "ethereal:fiery_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.01,
|
|
|
|
biomes = {"fiery"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."volcanol.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
-- replacements = {{"default:stone", "default:desert_stone"}},
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- jungle tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "ethereal:jungle_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.3,
|
|
|
|
biomes = {"junglee"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."jungletree.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- willow tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "ethereal:gray_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.025,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"grayness"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."willow.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- pine tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"ethereal:cold_dirt", "default:dirt_with_snow"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.025,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"snowy", "alpine"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."pinetree.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- apple tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "ethereal:green_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.03,
|
|
|
|
biomes = {"grassy", "jumble"},
|
2015-04-25 14:41:36 +03:00
|
|
|
schematic = ethereal.appletree,
|
2015-01-20 18:09:07 +03:00
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"ethereal:green_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.005,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"grassytwo"},
|
2015-04-25 14:41:36 +03:00
|
|
|
schematic = ethereal.appletree,
|
2015-01-20 18:09:07 +03:00
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- orange tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"ethereal:prairie_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.005,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"prairie"},
|
2015-04-25 14:41:36 +03:00
|
|
|
schematic = ethereal.orangetree,
|
2015-01-20 18:09:07 +03:00
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- acacia tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:desert_sand"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.004,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"desert"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."acaciatree.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- big old tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = "ethereal:green_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.01,
|
|
|
|
biomes = {"grassytwo"},
|
2015-01-20 18:09:07 +03:00
|
|
|
schematic = path.."bigtree.mts",
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
--= simple decorations
|
|
|
|
|
|
|
|
-- scorched tree
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "ethereal:dry_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.006,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"plains"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "ethereal:scorched_tree",
|
|
|
|
height_max = 6,
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- bamboo stalks
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "ethereal:bamboo_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.055,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"bamboo"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "ethereal:bamboo",
|
|
|
|
height_max = 5,
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- bamboo sprouts & grass
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "ethereal:bamboo_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.25,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"bamboo"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = {"ethereal:bamboo_sprout", "default:grass_2", "default:grass_3"},
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- dry shrub
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:dry_dirt", "default:sand", "default:desert_sand", "sandstone", "bakedclay:red"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.015,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"plains", "lake", "desert", "desertstone", "mesa"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "default:dry_shrub",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- flowers & strawberry
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "ethereal:green_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.03,
|
2015-01-20 18:09:07 +03:00
|
|
|
biomes = {"grassy", "grassy", "grassytwo"},
|
|
|
|
decoration = {"flowers:dandelion_white", "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", "flowers:viola", "ethereal:strawberry_7"},
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- prairie flowers & strawberry
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "ethereal:prairie_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.05,
|
|
|
|
biomes = {"prairie"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = {"flowers:dandelion_white", "flowers:dandelion_yellow", "flowers:geranium", "flowers:rose", "flowers:tulip", "flowers:viola", "ethereal:strawberry_7"},
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- crystal spike & crystal grass
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "ethereal:crystal_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.02,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"frost"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = {"ethereal:crystal_spike", "ethereal:crystalgrass"},
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- red shrub
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "ethereal:fiery_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.20,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"fiery"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "ethereal:dry_shrub",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- snowy grass
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:gray_dirt", "ethereal:cold_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.05,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"grayness", "snowy"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "ethereal:snowygrass",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- cactus
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:sandstone",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.01,
|
|
|
|
biomes = {"desertstone"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "default:cactus",
|
|
|
|
height_max = 3,
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:desert_sand",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.01,
|
|
|
|
biomes = {"desert"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "default:cactus",
|
|
|
|
height_max = 4,
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- wild mushroom
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "ethereal:mushroom_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.015,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"mushroom"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "ethereal:mushroom_plant",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- jungle grass
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:jungle_dirt", "ethereal:green_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.18,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"junglee", "jumble"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "default:junglegrass",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- grass
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:green_dirt_top", "ethereal:jungle_dirt", "ethereal:prairie_dirt", "ethereal:grove_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.4,
|
|
|
|
biomes = {"grassy", "grassytwo", "jumble", "junglee", "prairie", "grove"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "default:grass_2", "default:grass_3", "default:grass_4", "default:grass_5",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- ferns
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "ethereal:grove_dirt",
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.2,
|
|
|
|
biomes = {"grove"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "ethereal:fern",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- snow
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:cold_dirt", "default:dirt_with_snow"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.8,
|
|
|
|
biomes = {"snowy", "alpine"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "default:snow",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- wild onion
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:green_dirt", "ethereal:prairie_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.25,
|
|
|
|
biomes = {"grassy", "grassytwo", "jumble", "prairie"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "ethereal:onion_4",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- papyrus
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:green_dirt", "ethereal:jungle_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.1,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"grassy", "junglee"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "default:papyrus",
|
|
|
|
height_max = 4,
|
|
|
|
spawn_by = "default:water_source",
|
|
|
|
num_spawn_by = 1,
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- palm tree on sand next to water
|
2015-01-20 18:09:07 +03:00
|
|
|
minetest.register_on_generated(function(minp, maxp, seed)
|
2015-03-24 12:23:05 +03:00
|
|
|
if maxp.y > 1 and minp.y < 1 then
|
2015-01-20 18:09:07 +03:00
|
|
|
local perlin1 = minetest.get_perlin(354, 3, 0.7, 100)
|
|
|
|
local divlen = 8
|
2015-04-10 17:38:53 +03:00
|
|
|
local divs = (maxp.x-minp.x)/divlen+1
|
|
|
|
local pr, x, z
|
2015-01-20 18:09:07 +03:00
|
|
|
for divx=0,divs-1 do
|
2015-04-10 17:38:53 +03:00
|
|
|
for divz=0,divs-1 do
|
|
|
|
-- find random positions for palm tree
|
|
|
|
pr = PseudoRandom(seed+1)
|
|
|
|
x = pr:next(minp.x + math.floor((divx+0)*divlen), minp.x + math.floor((divx+1)*divlen))
|
|
|
|
z = pr:next(minp.z + math.floor((divz+0)*divlen), minp.z + math.floor((divz+1)*divlen))
|
2015-01-20 18:09:07 +03:00
|
|
|
if minetest.get_node({x=x,y=1,z=z}).name == "default:sand" and
|
|
|
|
minetest.find_node_near({x=x,y=1,z=z}, 1, "default:water_source") then
|
|
|
|
minetest.place_schematic({x=x-4,y=2,z=z-4}, path.."palmtree.mts", 0, '', 0)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
--= Farming Redo plants
|
|
|
|
|
2015-03-24 12:23:05 +03:00
|
|
|
if farming.mod and farming.mod == "redo" then
|
|
|
|
|
|
|
|
print ("[MOD] Ethereal - Detected and using Farming Redo mod")
|
2015-01-20 18:09:07 +03:00
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- potato
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:jungle_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.035,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"junglee"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = "farming:potato_3",
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- carrot, cucumber, potato, tomato, corn, coffee, raspberry, rhubarb
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:green_dirt", "ethereal:prairie_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.05,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"grassy", "grassytwo", "prairie", "jumble"},
|
2015-01-20 18:09:07 +03:00
|
|
|
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"},
|
|
|
|
})
|
|
|
|
|
2015-04-10 17:38:53 +03:00
|
|
|
-- melon and pumpkin
|
|
|
|
minetest.register_decoration({
|
2015-01-20 18:09:07 +03:00
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:green_dirt", "ethereal:jungle_dirt"},
|
2015-04-10 17:38:53 +03:00
|
|
|
sidelen = 80,
|
2015-01-20 18:09:07 +03:00
|
|
|
fill_ratio = 0.015,
|
2015-04-10 17:38:53 +03:00
|
|
|
biomes = {"grassy", "grassytwo", "junglee", "jumble"},
|
2015-01-20 18:09:07 +03:00
|
|
|
decoration = {"farming:melon_8", "farming:pumpkin_8"},
|
|
|
|
spawn_by = "default:water_source",
|
|
|
|
num_spawn_by = 1,
|
|
|
|
})
|
|
|
|
|
2015-04-25 11:05:34 +03:00
|
|
|
-- green beans
|
|
|
|
minetest.register_decoration({
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"ethereal:green_dirt"},
|
|
|
|
sidelen = 80,
|
|
|
|
fill_ratio = 0.035,
|
|
|
|
biomes = {"grassytwo"},
|
|
|
|
decoration = "farming:beanbush",
|
|
|
|
})
|
2015-01-20 18:09:07 +03:00
|
|
|
end
|