Add garden lattices

This commit is contained in:
kilbith 2015-05-12 16:44:16 +02:00
parent dad8ad1428
commit b93ec107d7
4 changed files with 67 additions and 0 deletions

View File

@ -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]

View File

@ -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 = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 783 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB