forked from nalc/homedecor_modpack
add welcome mats in three colors
(no crafting recipes yet)
This commit is contained in:
parent
2fe54e38e0
commit
9731dfe396
@ -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
|
||||
|
BIN
homedecor/textures/homedecor_welcome_mat_bottom.png
Normal file
BIN
homedecor/textures/homedecor_welcome_mat_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 600 B |
BIN
homedecor/textures/homedecor_welcome_mat_brown.png
Normal file
BIN
homedecor/textures/homedecor_welcome_mat_brown.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
homedecor/textures/homedecor_welcome_mat_green.png
Normal file
BIN
homedecor/textures/homedecor_welcome_mat_green.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
homedecor/textures/homedecor_welcome_mat_grey.png
Normal file
BIN
homedecor/textures/homedecor_welcome_mat_grey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 786 B |
Loading…
Reference in New Issue
Block a user