forked from mtcontrib/homedecor_modpack
Add garden lattices
This commit is contained in:
parent
dad8ad1428
commit
b93ec107d7
@ -3262,6 +3262,42 @@ minetest.register_craft({
|
|||||||
recipe = {"default:goldblock", "default:sword_mese"}
|
recipe = {"default:goldblock", "default:sword_mese"}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "homedecor:lattice_wood 8",
|
||||||
|
recipe = {
|
||||||
|
{"group:stick", "group:wood", "group:stick"},
|
||||||
|
{"group:wood", "", "group:wood"},
|
||||||
|
{"group:stick", "group:wood", "group:stick"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "homedecor:lattice_white_wood 8",
|
||||||
|
recipe = {
|
||||||
|
{"group:stick", "group:wood", "group:stick"},
|
||||||
|
{"group:wood", "dye:white", "group:wood"},
|
||||||
|
{"group:stick", "group:wood", "group:stick"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "homedecor:lattice_wood_vegetal 8",
|
||||||
|
recipe = {
|
||||||
|
{"group:stick", "group:wood", "group:stick"},
|
||||||
|
{"group:wood", "group:leaves", "group:wood"},
|
||||||
|
{"group:stick", "group:wood", "group:stick"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "homedecor:lattice_white_wood_vegetal 8",
|
||||||
|
recipe = {
|
||||||
|
{"group:stick", "group:wood", "group:stick"},
|
||||||
|
{"group:wood", "group:leaves", "group:wood"},
|
||||||
|
{"group:stick", "dye:white", "group:stick"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
for i in ipairs(homedecor.banister_materials) do
|
for i in ipairs(homedecor.banister_materials) do
|
||||||
|
|
||||||
local name = homedecor.banister_materials[i][1]
|
local name = homedecor.banister_materials[i][1]
|
||||||
|
@ -180,6 +180,37 @@ homedecor.register("stonepath", {
|
|||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local lattice_colors = {
|
||||||
|
{"wood", ".png^[colorize:#704214:180"},
|
||||||
|
{"white_wood", ".png"},
|
||||||
|
{"wood_vegetal", ".png^[colorize:#704214:180^homedecor_lattice_vegetal.png"},
|
||||||
|
{"white_wood_vegetal", ".png^homedecor_lattice_vegetal.png"},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, m in ipairs(lattice_colors) do
|
||||||
|
homedecor.register("lattice_"..m[1], {
|
||||||
|
description = "Garden Lattice ("..m[1]..")",
|
||||||
|
tiles = {"homedecor_lattice"..m[2]},
|
||||||
|
inventory_image = "homedecor_lattice"..m[2],
|
||||||
|
groups = { snappy=3 },
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, 0.47, 0.5, 0.5, 0.47}, -- NodeBox1
|
||||||
|
{-0.5, 0.422, 0.44, 0.5, 0.5, 0.5}, -- NodeBox2
|
||||||
|
{-0.5, -0.5, 0.44, 0.5, -0.422, 0.5}, -- NodeBox3
|
||||||
|
{0.422, -0.5, 0.44, 0.5, 0.5, 0.5}, -- NodeBox4
|
||||||
|
{-0.5, -0.5, 0.44, -0.422, 0.5, 0.5} -- NodeBox5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0.44, 0.5, 0.5, 0.5}
|
||||||
|
},
|
||||||
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
homedecor.register("swing", {
|
homedecor.register("swing", {
|
||||||
description = "Tree's swing",
|
description = "Tree's swing",
|
||||||
tiles = {
|
tiles = {
|
||||||
|
BIN
homedecor/textures/homedecor_lattice.png
Normal file
BIN
homedecor/textures/homedecor_lattice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 783 B |
BIN
homedecor/textures/homedecor_lattice_vegetal.png
Normal file
BIN
homedecor/textures/homedecor_lattice_vegetal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
Loading…
Reference in New Issue
Block a user