Mapgen for Alga added.

This commit is contained in:
A.C.M 2020-03-14 02:12:33 +01:00
parent 3766104f51
commit 094ca63c2f
2 changed files with 101 additions and 0 deletions

View File

@ -71,4 +71,6 @@ minetest.register_craftitem("aqua_farming:alga_item", {
on_use = minetest.item_eat(1),
})
dofile(aqua_farming.modpath .. "/mapgen_alga.lua")
aqua_farming.report(" module alga.lua loaded.")

99
mapgen_alga.lua Normal file
View File

@ -0,0 +1,99 @@
-- Green Alga
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
place_offset_y = -1,
sidelen = 4,
noise_params = {
offset = -4,
scale = 4,
spread = {x = 50, y = 50, z = 50},
seed = 7013,
octaves = 3,
persist = 0.7,
},
biomes = {
"desert_ocean",
"savanna_ocean",
"rainforest_ocean",
},
y_max = -2,
y_min = -8,
flags = "force_placement",
decoration = {"aqua_farming:sand_with_alga_6"},
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt"},
place_offset_y = -1,
sidelen = 4,
noise_params = {
offset = -4,
scale = 4,
spread = {x = 50, y = 50, z = 50},
seed = 7013,
octaves = 3,
persist = 0.7,
},
biomes = {
"desert_ocean",
"savanna_ocean",
"rainforest_ocean",
},
y_max = -2,
y_min = -8,
flags = "force_placement",
decoration = {"aqua_farming:dirt_with_alga_6"},
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:desert_sand"},
place_offset_y = -1,
sidelen = 4,
noise_params = {
offset = -4,
scale = 4,
spread = {x = 50, y = 50, z = 50},
seed = 7013,
octaves = 3,
persist = 0.7,
},
biomes = {
"desert_ocean",
"savanna_ocean",
"rainforest_ocean",
},
y_max = -2,
y_min = -8,
flags = "force_placement",
decoration = {"aqua_farming:desert_sand_with_alga_6"},
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:silver_sand"},
place_offset_y = -1,
sidelen = 4,
noise_params = {
offset = -4,
scale = 4,
spread = {x = 50, y = 50, z = 50},
seed = 7013,
octaves = 3,
persist = 0.7,
},
biomes = {
"desert_ocean",
"savanna_ocean",
"rainforest_ocean",
},
y_max = -2,
y_min = -8,
flags = "force_placement",
decoration = {"aqua_farming:sivler_sand_with_alga_6"},
})