Rename mod: walls → hades_walls
[minetest_hades/hades_revisited.git] / mods / hades_lamps / init.lua
blob0f99baff4e244b8f91f476966caf733a9fb17d40
1 local S = minetest.get_translator("hades_lamps")
3 minetest.register_node("hades_lamps:lamp_wall", {
4 description = S("Attached Lamp"),
5 drawtype = "nodebox",
6 paramtype = "light",
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,
13 light_source = 13,
14 walkable = false,
15 groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,attached_node=1},
16 node_box = {
17 type = "wallmounted",
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"),
27 drawtype = "nodebox",
28 paramtype = "light",
29 paramtype2 = "facedir",
30 is_ground_content = false,
31 tiles = {
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,
40 light_source = 13,
41 walkable = false,
42 groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
43 node_box = {
44 type = "fixed",
45 fixed = {
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"),
58 drawtype = "nodebox",
59 paramtype = "light",
60 paramtype2 = "facedir",
61 is_ground_content = false,
62 tiles = {
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,
71 light_source = 13,
72 walkable = false,
73 groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
74 node_box = {
75 type = "fixed",
76 fixed = {
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',
89 recipe = {
90 {'hades_core:glass', '', ''},
91 {'hades_glowcrystals:glowdust', '', ''},
92 {'hades_core:glass', '', ''},
95 minetest.register_craft({
96 output = 'hades_lamps:lamp_wall 2',
97 recipe = {
98 {'hades_core:glass', '', ''},
99 {'hades_torches:torch', '', ''},
100 {'hades_core:glass', '', ''},
104 minetest.register_craft({
105 output = 'hades_lamps:lantern 2',
106 recipe = {
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',
114 recipe = {
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',
123 recipe = {
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',
131 recipe = {
132 {'', 'hades_core:steel_ingot', ''},
133 {'hades_core:glass', 'hades_torches:torch', 'hades_core:glass'},
134 {'', 'hades_core:steel_ingot', ''},