Hibiscus flower along river bank.
This commit is contained in:
parent
e2554f9557
commit
7cd1a1235a
@ -198,6 +198,7 @@ function vmg.generate(minp, maxp, seed)
|
||||
local c_giant_mushroom_cap = minetest.get_content_id("valleys_mapgen:giant_mushroom_cap")
|
||||
local c_giant_mushroom_stem = minetest.get_content_id("valleys_mapgen:giant_mushroom_stem")
|
||||
local c_bird_of_paradise = minetest.get_content_id("valleys_mapgen:bird_of_paradise")
|
||||
local c_hibiscus = minetest.get_content_id("valleys_mapgen:hibiscus")
|
||||
local c_orchid = minetest.get_content_id("valleys_mapgen:orchid")
|
||||
|
||||
-- Air and Ignore
|
||||
@ -414,9 +415,11 @@ function vmg.generate(minp, maxp, seed)
|
||||
for i = 1, 4 do
|
||||
data[ivm+i*ystride] = c_papyrus
|
||||
end
|
||||
elseif temp > 1 and temp < 1.6 and v2 >= 0 and v2 < 0.1 and math.random(100) <= 2 and y < 60 then -- hibiscus along rivers
|
||||
data[ivm2] = c_hibiscus
|
||||
elseif v15 < 0.65 and temp >= 0.65 and temp < 1.5 and humidity < 2.6 and v16 < 1.5 and v13 < 0.8 and math.random() < 0.7 then -- Grass
|
||||
data[ivm2] = c_grass[math.random(1, 5)]
|
||||
elseif v15 > -0.6 and temp >= 1.8 and humidity > 2.2 and v16 > 1.8 then -- Jungle Grass
|
||||
elseif v15 > -0.6 and temp >= 1.8 and humidity > 2.2 and v16 > 1.8 then -- jungle plants
|
||||
if math.random(100) <= 2 then
|
||||
data[ivm2] = c_bird_of_paradise
|
||||
else
|
||||
|
16
nodes.lua
16
nodes.lua
@ -229,6 +229,22 @@ minetest.register_node("valleys_mapgen:gerbera", {
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("valleys_mapgen:hibiscus", {
|
||||
description = "White Hibiscus",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"vmg_hibiscus.png"},
|
||||
inventory_image = "vmg_hibiscus.png",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
waving = 1,
|
||||
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_white=1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("valleys_mapgen:orchid", {
|
||||
description = "Orchid",
|
||||
drawtype = "plantlike",
|
||||
|
BIN
textures/vmg_hibiscus.png
Normal file
BIN
textures/vmg_hibiscus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Loading…
x
Reference in New Issue
Block a user