forked from mtcontrib/homedecor_modpack
Add towel rod with towel
moved bathroom/kitchen tiles into misc-bathroom.lua also, rename misc_nodes.lua -> misc-nodes.lua
This commit is contained in:
parent
2c44af9b0b
commit
949a2a94d8
|
@ -57,7 +57,7 @@ end
|
||||||
|
|
||||||
-- load various other components
|
-- load various other components
|
||||||
|
|
||||||
dofile(homedecor.modpath.."/misc_nodes.lua") -- the catch-all for all misc nodes
|
dofile(homedecor.modpath.."/misc-nodes.lua") -- the catch-all for all misc nodes
|
||||||
dofile(homedecor.modpath.."/tables.lua")
|
dofile(homedecor.modpath.."/tables.lua")
|
||||||
dofile(homedecor.modpath.."/electronics.lua")
|
dofile(homedecor.modpath.."/electronics.lua")
|
||||||
dofile(homedecor.modpath.."/shutters.lua")
|
dofile(homedecor.modpath.."/shutters.lua")
|
||||||
|
@ -73,6 +73,8 @@ dofile(homedecor.modpath.."/lighting.lua")
|
||||||
dofile(homedecor.modpath.."/kitchen_cabinet.lua")
|
dofile(homedecor.modpath.."/kitchen_cabinet.lua")
|
||||||
dofile(homedecor.modpath.."/refrigerator.lua")
|
dofile(homedecor.modpath.."/refrigerator.lua")
|
||||||
|
|
||||||
|
dofile(homedecor.modpath.."/misc-bathroom.lua")
|
||||||
|
|
||||||
dofile(homedecor.modpath.."/laundry.lua")
|
dofile(homedecor.modpath.."/laundry.lua")
|
||||||
|
|
||||||
dofile(homedecor.modpath.."/furnaces.lua")
|
dofile(homedecor.modpath.."/furnaces.lua")
|
||||||
|
|
91
homedecor/misc-bathroom.lua
Normal file
91
homedecor/misc-bathroom.lua
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
minetest.register_node("homedecor:tiles_1", {
|
||||||
|
description = "Bathroom/kitchen tiles (shade #1)",
|
||||||
|
tiles = {
|
||||||
|
"homedecor_tiles1.png",
|
||||||
|
"homedecor_tiles1.png",
|
||||||
|
"homedecor_tiles1.png",
|
||||||
|
"homedecor_tiles1.png",
|
||||||
|
"homedecor_tiles1.png^[transformR90",
|
||||||
|
"homedecor_tiles1.png^[transformR90"
|
||||||
|
},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {cracky=3},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:tiles_2", {
|
||||||
|
description = "Bathroom/kitchen tiles (shade #2)",
|
||||||
|
tiles = {
|
||||||
|
"homedecor_tiles2.png",
|
||||||
|
"homedecor_tiles2.png",
|
||||||
|
"homedecor_tiles2.png",
|
||||||
|
"homedecor_tiles2.png",
|
||||||
|
"homedecor_tiles2.png^[transformR90",
|
||||||
|
"homedecor_tiles2.png^[transformR90"
|
||||||
|
},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {cracky=3},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:tiles_3", {
|
||||||
|
description = "Bathroom/kitchen tiles (shade #3)",
|
||||||
|
tiles = {
|
||||||
|
"homedecor_tiles3.png",
|
||||||
|
"homedecor_tiles3.png",
|
||||||
|
"homedecor_tiles3.png",
|
||||||
|
"homedecor_tiles3.png",
|
||||||
|
"homedecor_tiles3.png^[transformR90",
|
||||||
|
"homedecor_tiles3.png^[transformR90"
|
||||||
|
},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {cracky=3},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:tiles_4", {
|
||||||
|
description = "Bathroom/kitchen tiles (shade #4)",
|
||||||
|
tiles = {
|
||||||
|
"homedecor_tiles4.png",
|
||||||
|
"homedecor_tiles4.png",
|
||||||
|
"homedecor_tiles4.png",
|
||||||
|
"homedecor_tiles4.png",
|
||||||
|
"homedecor_tiles4.png^[transformR90",
|
||||||
|
"homedecor_tiles4.png^[transformR90"
|
||||||
|
},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {cracky=3},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:towel_rod", {
|
||||||
|
description = "Towel rod with towel",
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = {
|
||||||
|
"homedecor_towel_rod_top.png",
|
||||||
|
"homedecor_towel_rod_bottom.png",
|
||||||
|
"homedecor_towel_rod_sides.png",
|
||||||
|
"homedecor_towel_rod_sides.png^[transformFX",
|
||||||
|
"homedecor_towel_rod_fb.png",
|
||||||
|
"homedecor_towel_rod_fb.png"
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.375, 0.1875, 0.25, -0.3125, 0.375, 0.5},
|
||||||
|
{ 0.3125, 0.1875, 0.25, 0.375, 0.375, 0.5},
|
||||||
|
{-0.3125, 0.25, 0.3125, 0.3125, 0.375, 0.375},
|
||||||
|
{-0.3125, 0, 0.375, 0.3125, 0.34375, 0.4375},
|
||||||
|
{-0.3125, -0.3125, 0.25, 0.3125, 0.34375, 0.3125},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.375, -0.3125, 0.25, 0.375, 0.375, 0.5 }
|
||||||
|
},
|
||||||
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
|
||||||
|
sounds = default.node_sound_defaults(),
|
||||||
|
})
|
||||||
|
|
|
@ -278,66 +278,6 @@ minetest.register_node('homedecor:air_conditioner', {
|
||||||
selection_box = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
selection_box = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("homedecor:tiles_1", {
|
|
||||||
description = "Bathroom/kitchen tiles (shade #1)",
|
|
||||||
tiles = {
|
|
||||||
"homedecor_tiles1.png",
|
|
||||||
"homedecor_tiles1.png",
|
|
||||||
"homedecor_tiles1.png",
|
|
||||||
"homedecor_tiles1.png",
|
|
||||||
"homedecor_tiles1.png^[transformR90",
|
|
||||||
"homedecor_tiles1.png^[transformR90"
|
|
||||||
},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("homedecor:tiles_2", {
|
|
||||||
description = "Bathroom/kitchen tiles (shade #2)",
|
|
||||||
tiles = {
|
|
||||||
"homedecor_tiles2.png",
|
|
||||||
"homedecor_tiles2.png",
|
|
||||||
"homedecor_tiles2.png",
|
|
||||||
"homedecor_tiles2.png",
|
|
||||||
"homedecor_tiles2.png^[transformR90",
|
|
||||||
"homedecor_tiles2.png^[transformR90"
|
|
||||||
},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("homedecor:tiles_3", {
|
|
||||||
description = "Bathroom/kitchen tiles (shade #3)",
|
|
||||||
tiles = {
|
|
||||||
"homedecor_tiles3.png",
|
|
||||||
"homedecor_tiles3.png",
|
|
||||||
"homedecor_tiles3.png",
|
|
||||||
"homedecor_tiles3.png",
|
|
||||||
"homedecor_tiles3.png^[transformR90",
|
|
||||||
"homedecor_tiles3.png^[transformR90"
|
|
||||||
},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("homedecor:tiles_4", {
|
|
||||||
description = "Bathroom/kitchen tiles (shade #4)",
|
|
||||||
tiles = {
|
|
||||||
"homedecor_tiles4.png",
|
|
||||||
"homedecor_tiles4.png",
|
|
||||||
"homedecor_tiles4.png",
|
|
||||||
"homedecor_tiles4.png",
|
|
||||||
"homedecor_tiles4.png^[transformR90",
|
|
||||||
"homedecor_tiles4.png^[transformR90"
|
|
||||||
},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
local welcome_mat_colors = { "green", "brown", "grey" }
|
local welcome_mat_colors = { "green", "brown", "grey" }
|
||||||
|
|
||||||
for _, color in ipairs(welcome_mat_colors) do
|
for _, color in ipairs(welcome_mat_colors) do
|
BIN
homedecor/textures/homedecor_towel_rod_bottom.png
Normal file
BIN
homedecor/textures/homedecor_towel_rod_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 212 B |
BIN
homedecor/textures/homedecor_towel_rod_fb.png
Normal file
BIN
homedecor/textures/homedecor_towel_rod_fb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 435 B |
BIN
homedecor/textures/homedecor_towel_rod_sides.png
Normal file
BIN
homedecor/textures/homedecor_towel_rod_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 176 B |
BIN
homedecor/textures/homedecor_towel_rod_top.png
Normal file
BIN
homedecor/textures/homedecor_towel_rod_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 217 B |
Loading…
Reference in New Issue
Block a user