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 tiles
= {"hades_lamps_lamp.png"},
9 wield_image
= "hades_lamps_lamp_inv.png",
10 inventory_image
= "hades_lamps_lamp_inv.png",
11 sunlight_propagates
= true,
14 groups
= {snappy
=2,cracky
=3,oddly_breakable_by_hand
=3,attached_node
=1},
17 wall_side
= {-0.5, -0.1875, -0.1875, -0.375, 0.1875, 0.1875},
18 wall_top
= {-0.25, 0.375, -0.25, 0.25, 0.5, 0.25},
19 wall_bottom
= {-0.25, -0.5, -0.25, 0.25, -0.375, 0.25},
21 sounds
= hades_sounds
.node_sound_glass_defaults(),
24 minetest
.register_node("hades_lamps:lantern", {
25 description
= S("Bronze Floor Lantern"),
28 paramtype2
= "facedir",
30 "hades_lamps_lantern_top.png",
31 "hades_lamps_lantern_top.png", -- bottom
32 "hades_lamps_lantern_side.png",
33 "hades_lamps_lantern_side.png",
34 "hades_lamps_lantern_side.png",
35 "hades_lamps_lantern_side.png",
37 sunlight_propagates
= true,
40 groups
= {snappy
=2,cracky
=3,oddly_breakable_by_hand
=3},
44 {-0.25, -0.1875, -0.25, 0.25, 0.1875, 0.25},
45 {-0.1875, -0.25, -0.1875, 0.1875, 0.25, 0.1875},
46 {-0.125, -0.3125, -0.125, 0.125, 0.3125, 0.125},
47 {-0.0625, -0.5, -0.0625, 0.0625, 0.375, 0.0625},
48 {-0.125, -0.5, -0.125, 0.125, -0.4375, 0.125},
51 sounds
= hades_sounds
.node_sound_glass_defaults(),
54 minetest
.register_node("hades_lamps:lantern_rusty", {
55 description
= S("Rusty Floor Lantern"),
58 paramtype2
= "facedir",
60 "hades_lamps_lantern_rusty_top.png",
61 "hades_lamps_lantern_rusty_top.png", -- bottom
62 "hades_lamps_lantern_rusty_side.png",
63 "hades_lamps_lantern_rusty_side.png",
64 "hades_lamps_lantern_rusty_side.png",
65 "hades_lamps_lantern_rusty_side.png",
67 sunlight_propagates
= true,
70 groups
= {snappy
=2,cracky
=3,oddly_breakable_by_hand
=3},
74 {-0.25, -0.1875, -0.25, 0.25, 0.1875, 0.25},
75 {-0.1875, -0.25, -0.1875, 0.1875, 0.25, 0.1875},
76 {-0.125, -0.3125, -0.125, 0.125, 0.3125, 0.125},
77 {-0.0625, -0.5, -0.0625, 0.0625, 0.375, 0.0625},
78 {-0.125, -0.5, -0.125, 0.125, -0.4375, 0.125},
81 sounds
= hades_sounds
.node_sound_glass_defaults(),
84 minetest
.register_craft({
85 output
= 'hades_lamps:lamp_wall 2',
87 {'hades_core:glass', '', ''},
88 {'glowcrystals:glowdust', '', ''},
89 {'hades_core:glass', '', ''},
92 minetest
.register_craft({
93 output
= 'hades_lamps:lamp_wall 2',
95 {'hades_core:glass', '', ''},
96 {'hades_torches:torch', '', ''},
97 {'hades_core:glass', '', ''},
101 minetest
.register_craft({
102 output
= 'hades_lamps:lantern 2',
104 {'', 'hades_core:bronze_ingot', ''},
105 {'hades_core:glass', 'glowcrystals:glowdust', 'hades_core:glass'},
106 {'', 'hades_core:bronze_ingot', ''},
109 minetest
.register_craft({
110 output
= 'hades_lamps:lantern 2',
112 {'', 'hades_core:bronze_ingot', ''},
113 {'hades_core:glass', 'hades_torches:torch', 'hades_core:glass'},
114 {'', 'hades_core:bronze_ingot', ''},
118 minetest
.register_craft({
119 output
= 'hades_lamps:lantern_rusty 2',
121 {'', 'hades_core:steel_ingot', ''},
122 {'hades_core:glass', 'glowcrystals:glowdust', 'hades_core:glass'},
123 {'', 'hades_core:steel_ingot', ''},
126 minetest
.register_craft({
127 output
= 'hades_lamps:lantern_rusty 2',
129 {'', 'hades_core:steel_ingot', ''},
130 {'hades_core:glass', 'hades_torches:torch', 'hades_core:glass'},
131 {'', 'hades_core:steel_ingot', ''},