1 local S
= minetest
.get_translator("hades_lamps")
3 minetest
.register_node("hades_lamps:lamp_wall", {
4 description
= S("Attached Lamp"),
7 paramtype2
= "wallmounted",
8 is_ground_content
= false,
9 tiles
= {"hades_lamps_lamp.png"},
10 wield_image
= "hades_lamps_lamp_inv.png",
11 inventory_image
= "hades_lamps_lamp_inv.png",
12 sunlight_propagates
= true,
15 groups
= {snappy
=2,cracky
=3,oddly_breakable_by_hand
=3,attached_node
=1},
18 wall_side
= {-0.5, -0.1875, -0.1875, -0.375, 0.1875, 0.1875},
19 wall_top
= {-0.25, 0.375, -0.25, 0.25, 0.5, 0.25},
20 wall_bottom
= {-0.25, -0.5, -0.25, 0.25, -0.375, 0.25},
22 sounds
= hades_sounds
.node_sound_glass_defaults(),
25 minetest
.register_node("hades_lamps:lantern", {
26 description
= S("Bronze Floor Lantern"),
29 paramtype2
= "facedir",
30 is_ground_content
= false,
32 "hades_lamps_lantern_top.png",
33 "hades_lamps_lantern_top.png", -- bottom
34 "hades_lamps_lantern_side.png",
35 "hades_lamps_lantern_side.png",
36 "hades_lamps_lantern_side.png",
37 "hades_lamps_lantern_side.png",
39 sunlight_propagates
= true,
42 groups
= {snappy
=2,cracky
=3,oddly_breakable_by_hand
=3},
46 {-0.25, -0.1875, -0.25, 0.25, 0.1875, 0.25},
47 {-0.1875, -0.25, -0.1875, 0.1875, 0.25, 0.1875},
48 {-0.125, -0.3125, -0.125, 0.125, 0.3125, 0.125},
49 {-0.0625, -0.5, -0.0625, 0.0625, 0.375, 0.0625},
50 {-0.125, -0.5, -0.125, 0.125, -0.4375, 0.125},
53 sounds
= hades_sounds
.node_sound_glass_defaults(),
56 minetest
.register_node("hades_lamps:lantern_rusty", {
57 description
= S("Rusty Floor Lantern"),
60 paramtype2
= "facedir",
61 is_ground_content
= false,
63 "hades_lamps_lantern_rusty_top.png",
64 "hades_lamps_lantern_rusty_top.png", -- bottom
65 "hades_lamps_lantern_rusty_side.png",
66 "hades_lamps_lantern_rusty_side.png",
67 "hades_lamps_lantern_rusty_side.png",
68 "hades_lamps_lantern_rusty_side.png",
70 sunlight_propagates
= true,
73 groups
= {snappy
=2,cracky
=3,oddly_breakable_by_hand
=3},
77 {-0.25, -0.1875, -0.25, 0.25, 0.1875, 0.25},
78 {-0.1875, -0.25, -0.1875, 0.1875, 0.25, 0.1875},
79 {-0.125, -0.3125, -0.125, 0.125, 0.3125, 0.125},
80 {-0.0625, -0.5, -0.0625, 0.0625, 0.375, 0.0625},
81 {-0.125, -0.5, -0.125, 0.125, -0.4375, 0.125},
84 sounds
= hades_sounds
.node_sound_glass_defaults(),
87 minetest
.register_craft({
88 output
= 'hades_lamps:lamp_wall 2',
90 {'hades_core:glass', '', ''},
91 {'hades_glowcrystals:glowdust', '', ''},
92 {'hades_core:glass', '', ''},
95 minetest
.register_craft({
96 output
= 'hades_lamps:lamp_wall 2',
98 {'hades_core:glass', '', ''},
99 {'hades_torches:torch', '', ''},
100 {'hades_core:glass', '', ''},
104 minetest
.register_craft({
105 output
= 'hades_lamps:lantern 2',
107 {'', 'hades_core:bronze_ingot', ''},
108 {'hades_core:glass', 'hades_glowcrystals:glowdust', 'hades_core:glass'},
109 {'', 'hades_core:bronze_ingot', ''},
112 minetest
.register_craft({
113 output
= 'hades_lamps:lantern 2',
115 {'', 'hades_core:bronze_ingot', ''},
116 {'hades_core:glass', 'hades_torches:torch', 'hades_core:glass'},
117 {'', 'hades_core:bronze_ingot', ''},
121 minetest
.register_craft({
122 output
= 'hades_lamps:lantern_rusty 2',
124 {'', 'hades_core:steel_ingot', ''},
125 {'hades_core:glass', 'hades_glowcrystals:glowdust', 'hades_core:glass'},
126 {'', 'hades_core:steel_ingot', ''},
129 minetest
.register_craft({
130 output
= 'hades_lamps:lantern_rusty 2',
132 {'', 'hades_core:steel_ingot', ''},
133 {'hades_core:glass', 'hades_torches:torch', 'hades_core:glass'},
134 {'', 'hades_core:steel_ingot', ''},