1
0
spegling av https://github.com/mt-mods/homedecor_modpack.git synced 2025-11-06 16:45:26 +01:00

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
förälder 2fe54e38e0
incheckning 9731dfe396
5 ändrade filer med 23 tillägg och 0 borttagningar

Visa fil

@@ -338,3 +338,26 @@ minetest.register_node("homedecor:tiles_4", {
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.

Efter

Bredd:  |  Höjd:  |  Storlek: 600 B

Binary file not shown.

Efter

Bredd:  |  Höjd:  |  Storlek: 1.8 KiB

Binary file not shown.

Efter

Bredd:  |  Höjd:  |  Storlek: 1.8 KiB

Binary file not shown.

Efter

Bredd:  |  Höjd:  |  Storlek: 786 B