Add Solanaceae flower that spawn above 64 blocks of altitude
This commit is contained in:
parent
5435173e1e
commit
ba3e5711d0
21
init.lua
21
init.lua
@ -64,7 +64,13 @@ moreflowers.datas_simple = {
|
||||
"wild_carrot",
|
||||
"Wild Carrot",
|
||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16},
|
||||
{flammable = 1}
|
||||
{flammable = 1},
|
||||
},
|
||||
{
|
||||
"solanaceae",
|
||||
"Solanaceae",
|
||||
{-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
|
||||
{flammable = 1},
|
||||
},
|
||||
}
|
||||
moreflowers.datas_tall = {
|
||||
@ -144,15 +150,16 @@ if minetest.get_modpath("bonemeal") and bonemeal then
|
||||
local flowers = {
|
||||
"flowers:dandelion_white", "flowers:dandelion_yellow", "flowers:geranium",
|
||||
"flowers:rose", "flowers:tulip", "flowers:viola", "moreflowers:wild_carrot",
|
||||
"moreflowers:teosinte",
|
||||
"moreflowers:teosinte", "moreflowers:solanaceae"
|
||||
}
|
||||
|
||||
if minetest.get_modpath("bakedclay") then
|
||||
flowers[9] = "bakedclay:delphinium"
|
||||
flowers[10] = "bakedclay:thistle"
|
||||
flowers[11] = "bakedclay:lazarus"
|
||||
flowers[12] = "bakedclay:mannagrass"
|
||||
flowers[13] = ""
|
||||
local index = #flowers
|
||||
flowers[index+1] = "bakedclay:delphinium"
|
||||
flowers[index+2] = "bakedclay:thistle"
|
||||
flowers[index+3] = "bakedclay:lazarus"
|
||||
flowers[index+4] = "bakedclay:mannagrass"
|
||||
flowers[index+5] = ""
|
||||
end
|
||||
|
||||
|
||||
|
44
mapgen.lua
44
mapgen.lua
@ -18,32 +18,12 @@ local function register_mgv6_flower(name)
|
||||
})
|
||||
end
|
||||
|
||||
--[[local function register_flower(seed, name, biomes_list)
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.015,
|
||||
scale = 0.025,
|
||||
spread = {x = 200, y = 200, z = 200},
|
||||
seed = seed,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
biomes = {"grassland", "deciduous_forest", "coniferous_forest"},
|
||||
y_min = 1,
|
||||
y_max = 31000,
|
||||
decoration = "moreflowers:" .. name,
|
||||
})
|
||||
end
|
||||
--]]
|
||||
function moreflowers.register_mgv6_decorations()
|
||||
register_mgv6_flower("wild_carrot")
|
||||
register_mgv6_flower("solanaceae")
|
||||
end
|
||||
|
||||
function moreflowers.register_decorations()
|
||||
-- register_flower(368, "wild_carrot")
|
||||
minetest.register_decoration(
|
||||
{
|
||||
deco_type = "simple",
|
||||
@ -57,7 +37,7 @@ function moreflowers.register_decorations()
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
biomes = {"grassland", "deciduous_forest", "coniferous_forest"},
|
||||
biomes = {"grassland", "deciduous_forest"},
|
||||
y_min = 1,
|
||||
y_max = 31000,
|
||||
decoration = "moreflowers:wild_carrot",
|
||||
@ -73,7 +53,25 @@ function moreflowers.register_decorations()
|
||||
decoration = "moreflowers:teosinte",
|
||||
height = 1,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.015,
|
||||
scale = 0.025,
|
||||
spread = {x = 200, y = 200, z = 200},
|
||||
seed = 369,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
biomes = {"grassland", "deciduous_forest"},
|
||||
y_min = 64,
|
||||
y_max = 31000,
|
||||
decoration = "moreflowers:solanaceae",
|
||||
})
|
||||
end
|
||||
|
||||
-- detect mapgen
|
||||
|
BIN
textures/moreflowers_solanaceae.png
Normal file
BIN
textures/moreflowers_solanaceae.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 258 B |
Loading…
Reference in New Issue
Block a user