add welcome mats in three colors

(no crafting recipes yet)
This commit is contained in:
Vanessa Ezekowitz 2014-06-25 02:50:11 -04:00
parent 2fe54e38e0
commit 9731dfe396
5 changed files with 23 additions and 0 deletions

View File

@ -338,3 +338,26 @@ minetest.register_node("homedecor:tiles_4", {
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
local welcome_mat_colors = { "green", "brown", "grey" }
for _, color in ipairs(welcome_mat_colors) do
minetest.register_node("homedecor:welcome_mat_"..color, {
description = "Welcome Mat ("..color..")",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
tiles = {
"homedecor_welcome_mat_"..color..".png",
"homedecor_welcome_mat_bottom.png",
"homedecor_welcome_mat_"..color..".png",
},
groups = {crumbly=3},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.25},
}),
node_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.375, 0.5, -0.46875, 0.375 }
}
})
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B