Add Spore blossom

This commit is contained in:
cora 2023-08-07 16:08:18 +02:00 committed by the-real-herowl
parent 46f01e9ce1
commit 5327bdfda9
2 changed files with 111 additions and 4 deletions

View File

@ -227,23 +227,35 @@ minetest.register_node("mcl_lush_caves:azalea_leaves_flowering", {
_mcl_silk_touch_drop = true,
})
--[[
minetest.register_node("mcl_lush_caves:spore_blossom", {
description = S("Spore blossom"),
_doc_items_longdesc = S("Spore blossom"),
_doc_items_hidden = false,
tiles = {"mcl_lush_caves_spore_blossom.png"},
drawtype = "plantlike",
param2type = "light",
param2type = "meshoptions",
place_param2 = 4,
is_ground_content = true,
stack_max = 64,
groups = {handy = 1, plant = 1},
sounds = mcl_sounds.node_sound_dirt_defaults(),
selection_box = {
type = "fixed",
fixed = {{ -3/16, -8/16, -3/16, 3/16, 1/16, 3/16 }},
},
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_place = mcl_util.generate_on_place_plant_function(function(place_pos, place_node,stack)
local above = vector.offset(place_pos,0,1,0)
local snn = minetest.get_node_or_nil(above).name
if not snn then return false end
if minetest.get_item_group(snn,"soil_sapling") > 0 then
return true
end
end)
})
--[[
minetest.register_node("mcl_lush_caves:azalea", {
description = S("Azalea"),
inventory_image = "mcl_lush_caves_azalea_plant.png",

View File

@ -3530,6 +3530,101 @@ local function register_decorations()
for k, _ in pairs(corals) do
register_coral_decos(k)
end
local lushcaves = { "LushCaves", "LushCaves_underground", "LushCaves_ocean", "LushCaves_deep_ocean"}
local lushcaves_underground = { "LushCaves_underground", "LushCaves_ocean", "LushCaves_deep_ocean"}
minetest.register_decoration({
decoration = "mcl_lush_caves:moss",
deco_type = "simple",
place_on = {"mcl_core:stone","mcl_deepslate:deepslate","mcl_deepslate:tuff","group:material_stone", "mcl_core:gravel", "mcl_core:bedrock"},
biomes = lushcaves,
fill_ratio = 10,
flags = "all_floors, all_ceilings",
})
minetest.register_decoration({
decoration = "mcl_flowers:tallgrass",
deco_type = "simple",
place_on = {"mcl_lush_caves:moss"},
biomes = lushcaves,
fill_ratio = 1,
flags = "all_floors",
})
minetest.register_decoration({
decoration = "mcl_lush_caves:cave_vines",
deco_type = "simple",
place_on = {"mcl_lush_caves:moss"},
height = 1,
height_max = 4,
fill_ratio = 0.2,
flags = "all_ceilings",
biomes = lushcaves_underground,
})
minetest.register_decoration({
decoration = "mcl_lush_caves:cave_vines_lit",
deco_type = "simple",
place_on = {"mcl_lush_caves:moss"},
height = 1,
height_max = 4,
fill_ratio = 0.3,
flags = "all_ceilings",
biomes = lushcaves_underground,
})
minetest.register_decoration({
decoration = "mcl_lush_caves:cave_vines_lit",
deco_type = "simple",
place_on = {"mcl_lush_caves:cave_vines_lit","mcl_lush_caves:cave_vines"},
height = 1,
height_max = 4,
fill_ratio = 0.1,
flags = "all_ceilings",
biomes = lushcaves_underground,
})
minetest.register_decoration({
decoration = "mcl_lush_caves:cave_vines",
deco_type = "simple",
place_on = {"mcl_lush_caves:cave_vines_lit","mcl_lush_caves:cave_vines"},
height = 1,
height_max = 5,
fill_ratio = 0.1,
flags = "all_ceilings",
biomes = lushcaves_underground,
})
minetest.register_decoration({
place_on = {"mcl_lush_caves:rooted_dirt"},
decoration = "mcl_lush_caves:hanging_roots",
deco_type = "simple",
fill_ratio = 10,
flags = "all_ceilings",
biomes = lushcaves,
})
minetest.register_decoration({
decoration = "mcl_lush_caves:spore_blossom",
deco_type = "simple",
place_on = {"mcl_lush_caves:moss"},
spawn_by = {"air"},
num_spawn_by = 4,
fill_ratio = 0.1,
param2 = 4,
flags = "all_ceilings",
biomes = lushcaves_underground,
})
minetest.register_decoration({
decoration = "mcl_lush_caves:moss_carpet",
deco_type = "simple",
place_on = {"group:material_stone","mcl_core:gravel","mcl_lush_caves:moss"},
fill_ratio = 0.1,
flags = "all_floors",
biomes = lushcaves,
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"group:sand", "mcl_core:gravel", "mcl_mud:mud"},