diff --git a/homedecor/clocks.lua b/homedecor/clocks.lua new file mode 100644 index 00000000..83d80fe5 --- /dev/null +++ b/homedecor/clocks.lua @@ -0,0 +1,103 @@ +minetest.register_node("homedecor:analog_clock_plastic", { + description = "Analog clock (plastic)", + drawtype = "nodebox", + tiles = { + "homedecor_analog_clock_plastic_edges.png", + "homedecor_analog_clock_plastic_edges.png", + "homedecor_analog_clock_plastic_edges.png", + "homedecor_analog_clock_plastic_edges.png", + "homedecor_analog_clock_plastic_back.png", + "homedecor_analog_clock_plastic_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -8/32, -3/32, 15/32, 8/32, 3/32, 16/32 }, + { -7/32, -5/32, 15/32, 7/32, 5/32, 16/32 }, + { -6/32, -6/32, 15/32, 6/32, 6/32, 16/32 }, + { -5/32, -7/32, 15/32, 5/32, 7/32, 16/32 }, + { -3/32, -8/32, 15/32, 3/32, 8/32, 16/32 } + } + }, + selection_box = { + type = "fixed", + fixed = { -8/32, -8/32, 15/32, 8/32, 8/32, 16/32 } + }, + groups = {snappy=3}, +}) + +minetest.register_node("homedecor:analog_clock_wood", { + description = "Analog clock (wood)", + drawtype = "nodebox", + tiles = { + "homedecor_analog_clock_wood_edges.png", + "homedecor_analog_clock_wood_edges.png", + "homedecor_analog_clock_wood_edges.png", + "homedecor_analog_clock_wood_edges.png", + "homedecor_analog_clock_wood_back.png", + "homedecor_analog_clock_wood_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -8/32, -3/32, 15/32, 8/32, 3/32, 16/32 }, + { -7/32, -5/32, 15/32, 7/32, 5/32, 16/32 }, + { -6/32, -6/32, 15/32, 6/32, 6/32, 16/32 }, + { -5/32, -7/32, 15/32, 5/32, 7/32, 16/32 }, + { -3/32, -8/32, 15/32, 3/32, 8/32, 16/32 } + } + }, + selection_box = { + type = "fixed", + fixed = { -8/32, -8/32, 15/32, 8/32, 8/32, 16/32 } + }, + groups = {snappy=3}, +}) + +minetest.register_node("homedecor:digital_clock", { + description = "Digital clock", + drawtype = "nodebox", + tiles = { + "homedecor_digital_clock_edges.png", + "homedecor_digital_clock_edges.png", + "homedecor_digital_clock_edges.png", + "homedecor_digital_clock_edges.png", + "homedecor_digital_clock_back.png", + "homedecor_digital_clock_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.28125, -0.25, 0.4375, 0.3125, 0.25, 0.5}, + } + }, + groups = {snappy=3}, +}) + +minetest.register_node("homedecor:alarm_clock", { + description = "Alarm clock", + drawtype = "nodebox", + tiles = { + "homedecor_alarm_clock_top.png", + "homedecor_alarm_clock_bottom.png", + "homedecor_alarm_clock_sides.png", + "homedecor_alarm_clock_sides.png^[transformFX", + "homedecor_alarm_clock_back.png", + "homedecor_alarm_clock_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -9/32, -16/32, 7/32, 10/32, -5/32, 16/32 }, + } + }, + groups = {snappy=3}, +}) diff --git a/homedecor/init.lua b/homedecor/init.lua index faec921e..da3d5c5d 100644 --- a/homedecor/init.lua +++ b/homedecor/init.lua @@ -77,6 +77,7 @@ dofile(homedecor.modpath.."/laundry.lua") dofile(homedecor.modpath.."/furnaces.lua") dofile(homedecor.modpath.."/nightstands.lua") +dofile(homedecor.modpath.."/clocks.lua") dofile(homedecor.modpath.."/crafts.lua") dofile(homedecor.modpath.."/crafts_nomoreblocks.lua") diff --git a/homedecor/misc_nodes.lua b/homedecor/misc_nodes.lua index 15d9284f..0a810d91 100644 --- a/homedecor/misc_nodes.lua +++ b/homedecor/misc_nodes.lua @@ -388,3 +388,4 @@ minetest.register_node("homedecor:chimney", { sounds = default.node_sound_stone_defaults() }) + diff --git a/homedecor/textures/homedecor_alarm_clock_back.png b/homedecor/textures/homedecor_alarm_clock_back.png new file mode 100644 index 00000000..722fdcce Binary files /dev/null and b/homedecor/textures/homedecor_alarm_clock_back.png differ diff --git a/homedecor/textures/homedecor_alarm_clock_bottom.png b/homedecor/textures/homedecor_alarm_clock_bottom.png new file mode 100644 index 00000000..d8ae29fd Binary files /dev/null and b/homedecor/textures/homedecor_alarm_clock_bottom.png differ diff --git a/homedecor/textures/homedecor_alarm_clock_front.png b/homedecor/textures/homedecor_alarm_clock_front.png new file mode 100644 index 00000000..ea6c11da Binary files /dev/null and b/homedecor/textures/homedecor_alarm_clock_front.png differ diff --git a/homedecor/textures/homedecor_alarm_clock_sides.png b/homedecor/textures/homedecor_alarm_clock_sides.png new file mode 100644 index 00000000..ea2ce0cf Binary files /dev/null and b/homedecor/textures/homedecor_alarm_clock_sides.png differ diff --git a/homedecor/textures/homedecor_alarm_clock_top.png b/homedecor/textures/homedecor_alarm_clock_top.png new file mode 100644 index 00000000..78fee21a Binary files /dev/null and b/homedecor/textures/homedecor_alarm_clock_top.png differ diff --git a/homedecor/textures/homedecor_analog_clock_plastic_back.png b/homedecor/textures/homedecor_analog_clock_plastic_back.png new file mode 100644 index 00000000..3efdb117 Binary files /dev/null and b/homedecor/textures/homedecor_analog_clock_plastic_back.png differ diff --git a/homedecor/textures/homedecor_analog_clock_plastic_edges.png b/homedecor/textures/homedecor_analog_clock_plastic_edges.png new file mode 100644 index 00000000..25c4c232 Binary files /dev/null and b/homedecor/textures/homedecor_analog_clock_plastic_edges.png differ diff --git a/homedecor/textures/homedecor_analog_clock_plastic_front.png b/homedecor/textures/homedecor_analog_clock_plastic_front.png new file mode 100644 index 00000000..20123c13 Binary files /dev/null and b/homedecor/textures/homedecor_analog_clock_plastic_front.png differ diff --git a/homedecor/textures/homedecor_analog_clock_wood_back.png b/homedecor/textures/homedecor_analog_clock_wood_back.png new file mode 100644 index 00000000..76cb41c1 Binary files /dev/null and b/homedecor/textures/homedecor_analog_clock_wood_back.png differ diff --git a/homedecor/textures/homedecor_analog_clock_wood_edges.png b/homedecor/textures/homedecor_analog_clock_wood_edges.png new file mode 100644 index 00000000..aab00e74 Binary files /dev/null and b/homedecor/textures/homedecor_analog_clock_wood_edges.png differ diff --git a/homedecor/textures/homedecor_analog_clock_wood_front.png b/homedecor/textures/homedecor_analog_clock_wood_front.png new file mode 100644 index 00000000..60cfd66d Binary files /dev/null and b/homedecor/textures/homedecor_analog_clock_wood_front.png differ diff --git a/homedecor/textures/homedecor_digital_clock_back.png b/homedecor/textures/homedecor_digital_clock_back.png new file mode 100644 index 00000000..2f3b70d3 Binary files /dev/null and b/homedecor/textures/homedecor_digital_clock_back.png differ diff --git a/homedecor/textures/homedecor_digital_clock_edges.png b/homedecor/textures/homedecor_digital_clock_edges.png new file mode 100644 index 00000000..41c2a7c8 Binary files /dev/null and b/homedecor/textures/homedecor_digital_clock_edges.png differ diff --git a/homedecor/textures/homedecor_digital_clock_front.png b/homedecor/textures/homedecor_digital_clock_front.png new file mode 100644 index 00000000..062d2b93 Binary files /dev/null and b/homedecor/textures/homedecor_digital_clock_front.png differ