-- Papyrus
minetest.register_decoration({
+ name = "default:papyrus",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
-- Cacti
minetest.register_decoration({
+ name = "default:cactus",
deco_type = "simple",
place_on = {"default:desert_sand"},
sidelen = 16,
for length = 1, 5 do
minetest.register_decoration({
+ name = "default:grass_"..length,
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
-- Dry shrubs
minetest.register_decoration({
+ name = "default:dry_shrub",
deco_type = "simple",
place_on = {"default:desert_sand", "default:dirt_with_snow"},
sidelen = 16,
local function register_grass_decoration(offset, scale, length)
minetest.register_decoration({
+ name = "default:grass_" .. length,
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
local function register_dry_grass_decoration(offset, scale, length)
minetest.register_decoration({
+ name = "default:dry_grass_" .. length,
deco_type = "simple",
place_on = {"default:dirt_with_dry_grass"},
sidelen = 16,
local function register_fern_decoration(seed, length)
minetest.register_decoration({
+ name = "default:fern_" .. length,
deco_type = "simple",
place_on = {"default:dirt_with_coniferous_litter"},
sidelen = 16,
-- Apple tree and log
minetest.register_decoration({
+ name = "default:apple_tree",
deco_type = "schematic",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
})
minetest.register_decoration({
+ name = "default:apple_log",
deco_type = "schematic",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
local chunksize = tonumber(minetest.get_mapgen_setting("chunksize"))
if chunksize >= 5 then
minetest.register_decoration({
+ name = "default:emergent_jungle_tree",
deco_type = "schematic",
place_on = {"default:dirt_with_rainforest_litter"},
sidelen = 80,
-- Jungle tree and log
minetest.register_decoration({
+ name = "default:jungle_tree",
deco_type = "schematic",
place_on = {"default:dirt_with_rainforest_litter", "default:dirt"},
sidelen = 80,
})
minetest.register_decoration({
+ name = "default:jungle_log",
deco_type = "schematic",
place_on = {"default:dirt_with_rainforest_litter", "default:dirt"},
sidelen = 80,
-- Taiga and temperate coniferous forest pine tree, small pine tree and log
minetest.register_decoration({
+ name = "default:pine_tree",
deco_type = "schematic",
place_on = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"},
sidelen = 16,
})
minetest.register_decoration({
+ name = "default:small_pine_tree",
deco_type = "schematic",
place_on = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"},
sidelen = 16,
})
minetest.register_decoration({
+ name = "default:pine_log",
deco_type = "schematic",
place_on = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"},
sidelen = 80,
-- Acacia tree and log
minetest.register_decoration({
+ name = "default:acacia_tree",
deco_type = "schematic",
place_on = {"default:dirt_with_dry_grass"},
sidelen = 16,
})
minetest.register_decoration({
+ name = "default:acacia_log",
deco_type = "schematic",
place_on = {"default:dirt_with_dry_grass"},
sidelen = 16,
-- Aspen tree and log
minetest.register_decoration({
+ name = "default:aspen_tree",
deco_type = "schematic",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
})
minetest.register_decoration({
+ name = "default:aspen_log",
deco_type = "schematic",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
-- Large cactus
minetest.register_decoration({
+ name = "default:large_cactus",
deco_type = "schematic",
place_on = {"default:desert_sand"},
sidelen = 16,
-- Cactus
minetest.register_decoration({
+ name = "default:cactus",
deco_type = "simple",
place_on = {"default:desert_sand"},
sidelen = 16,
-- Papyrus
minetest.register_decoration({
+ name = "default:papyrus",
deco_type = "schematic",
place_on = {"default:dirt"},
sidelen = 16,
-- Bush
minetest.register_decoration({
+ name = "default:bush",
deco_type = "schematic",
place_on = {"default:dirt_with_grass", "default:dirt_with_snow"},
sidelen = 16,
-- Acacia bush
minetest.register_decoration({
+ name = "default:acacia_bush",
deco_type = "schematic",
place_on = {"default:dirt_with_dry_grass"},
sidelen = 16,
-- Junglegrass
minetest.register_decoration({
+ name = "default:junglegrass",
deco_type = "simple",
place_on = {"default:dirt_with_rainforest_litter"},
sidelen = 80,
-- Dry shrub
minetest.register_decoration({
+ name = "default:dry_shrub",
deco_type = "simple",
place_on = {"default:desert_sand",
"default:sand", "default:silver_sand"},
-- Marram grass
minetest.register_decoration({
+ name = "default:marram_grass",
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 4,
-- Coral reef
minetest.register_decoration({
+ name = "default:corals",
deco_type = "schematic",
place_on = {"default:sand"},
noise_params = {
-- Kelp
minetest.register_decoration({
+ name = "default:kelp",
deco_type = "simple",
place_on = {"default:sand"},
place_offset_y = -1,
-- Mgv6
--
-local function register_mgv6_flower(name)
+local function register_mgv6_flower(flower_name)
minetest.register_decoration({
+ name = "flowers:"..flower_name,
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
},
y_max = 30,
y_min = 1,
- decoration = "flowers:"..name,
+ decoration = "flowers:"..flower_name,
})
end
-local function register_mgv6_mushroom(name)
+local function register_mgv6_mushroom(mushroom_name)
minetest.register_decoration({
+ name = "flowers:"..mushroom_name,
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
},
y_max = 30,
y_min = 1,
- decoration = "flowers:"..name,
+ decoration = "flowers:"..mushroom_name,
spawn_by = "default:tree",
num_spawn_by = 1,
})
local function register_mgv6_waterlily()
minetest.register_decoration({
+ name = "flowers:waterlily",
deco_type = "simple",
place_on = {"default:dirt"},
sidelen = 16,
-- All other biome API mapgens
--
-local function register_flower(seed, name)
+local function register_flower(seed, flower_name)
minetest.register_decoration({
+ name = "flowers:"..flower_name,
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
biomes = {"grassland", "deciduous_forest", "floatland_grassland"},
y_max = 31000,
y_min = 1,
- decoration = "flowers:"..name,
+ decoration = "flowers:"..flower_name,
})
end
-local function register_mushroom(name)
+local function register_mushroom(mushroom_name)
minetest.register_decoration({
+ name = "flowers:"..mushroom_name,
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
sidelen = 16,
"floatland_coniferous_forest"},
y_max = 31000,
y_min = 1,
- decoration = "flowers:"..name,
+ decoration = "flowers:"..mushroom_name,
})
end
local function register_waterlily()
minetest.register_decoration({
+ name = "default:waterlily",
deco_type = "simple",
place_on = {"default:dirt"},
sidelen = 16,