add yellow and red shrubbery, crafted from green shrub + dye
@ -3345,7 +3345,7 @@ minetest.register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:shrubbery 3",
|
output = "homedecor:shrubbery_green 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "group:leaves", "group:leaves", "group:leaves" },
|
{ "group:leaves", "group:leaves", "group:leaves" },
|
||||||
{ "group:leaves", "group:leaves", "group:leaves" },
|
{ "group:leaves", "group:leaves", "group:leaves" },
|
||||||
@ -3353,22 +3353,45 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
for _, color in ipairs(homedecor.shrub_colors) do
|
||||||
type = "shapeless",
|
|
||||||
output = "homedecor:shrubbery_large",
|
|
||||||
recipe = {
|
|
||||||
"homedecor:shrubbery"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "homedecor:shrubbery",
|
output = "homedecor:shrubbery_large_"..color,
|
||||||
recipe = {
|
recipe = {
|
||||||
"homedecor:shrubbery_large"
|
"homedecor:shrubbery_"..color
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:shrubbery_"..color,
|
||||||
|
recipe = {
|
||||||
|
"homedecor:shrubbery_large_"..color
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
if color ~= "green" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:shrubbery_large_"..color,
|
||||||
|
recipe = {
|
||||||
|
"homedecor:shrubbery_large_green",
|
||||||
|
"dye:"..color
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:shrubbery_"..color,
|
||||||
|
recipe = {
|
||||||
|
"homedecor:shrubbery_green",
|
||||||
|
"dye:"..color
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
for i in ipairs(homedecor.banister_materials) do
|
for i in ipairs(homedecor.banister_materials) do
|
||||||
|
|
||||||
|
@ -349,29 +349,7 @@ if minetest.get_modpath("bucket") then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("homedecor:shrubbery_large", {
|
local shrub_model = {
|
||||||
description = S("Shrubbery"),
|
|
||||||
drawtype = "allfaces_optional",
|
|
||||||
tiles = {"homedecor_shrubbery_top.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {snappy=3, flammable=2},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("homedecor:shrubbery", {
|
|
||||||
description = S("Shrubbery"),
|
|
||||||
drawtype = "nodebox",
|
|
||||||
tiles = {
|
|
||||||
"homedecor_shrubbery_top.png",
|
|
||||||
"homedecor_shrubbery_bottom.png",
|
|
||||||
"homedecor_shrubbery_sides.png"
|
|
||||||
},
|
|
||||||
paramtype = "light",
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {snappy=3, flammable=2},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-0.312500,-0.500000,0.250000,-0.187500,-0.437500,0.375000}, --NodeBox 1
|
{-0.312500,-0.500000,0.250000,-0.187500,-0.437500,0.375000}, --NodeBox 1
|
||||||
@ -388,12 +366,43 @@ minetest.register_node("homedecor:shrubbery", {
|
|||||||
{-0.500000,-0.312500,-0.500000,0.500000,0.500000,0.500000}, --NodeBox 12
|
{-0.500000,-0.312500,-0.500000,0.500000,0.500000,0.500000}, --NodeBox 12
|
||||||
{0.000000,-0.500000,0.187500,0.125000,-0.437500,0.312500}, --NodeBox 13
|
{0.000000,-0.500000,0.187500,0.125000,-0.437500,0.312500}, --NodeBox 13
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
|
||||||
|
|
||||||
|
homedecor.shrub_colors = {
|
||||||
|
"green",
|
||||||
|
"red",
|
||||||
|
"yellow"
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, color in ipairs(homedecor.shrub_colors) do
|
||||||
|
minetest.register_node("homedecor:shrubbery_large_"..color, {
|
||||||
|
description = S("Shrubbery ("..color..")"),
|
||||||
|
drawtype = "allfaces_optional",
|
||||||
|
tiles = {"homedecor_shrubbery_"..color.."_top.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
groups = {snappy=3, flammable=2},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:shrubbery_"..color, {
|
||||||
|
description = S("Shrubbery ("..color..")"),
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = {
|
||||||
|
"homedecor_shrubbery_"..color.."_top.png",
|
||||||
|
"homedecor_shrubbery_bottom.png",
|
||||||
|
"homedecor_shrubbery_"..color.."_sides.png"
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
groups = {snappy=3, flammable=2},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
node_box = shrub_model
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_alias("homedecor:well_top", "air")
|
minetest.register_alias("homedecor:well_top", "air")
|
||||||
minetest.register_alias("homedecor:well_base", "homedecor:well")
|
minetest.register_alias("homedecor:well_base", "homedecor:well")
|
||||||
|
|
||||||
minetest.register_alias("gloopblocks:shrubbery", "homedecor:shrubbery")
|
minetest.register_alias("gloopblocks:shrubbery", "homedecor:shrubbery_green")
|
||||||
minetest.register_alias("gloopblocks:shrubbery_large", "homedecor:shrubbery_large")
|
minetest.register_alias("gloopblocks:shrubbery_large", "homedecor:shrubbery_large_green")
|
||||||
|
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 198 B |
BIN
homedecor/textures/homedecor_shrubbery_red_sides.png
Normal file
After Width: | Height: | Size: 448 B |
BIN
homedecor/textures/homedecor_shrubbery_red_top.png
Normal file
After Width: | Height: | Size: 318 B |
BIN
homedecor/textures/homedecor_shrubbery_yellow_sides.png
Normal file
After Width: | Height: | Size: 447 B |
BIN
homedecor/textures/homedecor_shrubbery_yellow_top.png
Normal file
After Width: | Height: | Size: 313 B |