Fix wield image of torchlike fruit
[minetest_hades/hades_revisited.git] / mods / hades_lamps / init.lua
blobfc87fda1e249b3d4c6cd84b98b57baca9c30b5b6
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 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,
12 light_source = 13,
13 walkable = false,
14 groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,attached_node=1},
15 node_box = {
16 type = "wallmounted",
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"),
26 drawtype = "nodebox",
27 paramtype = "light",
28 paramtype2 = "facedir",
29 tiles = {
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,
38 light_source = 13,
39 walkable = false,
40 groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
41 node_box = {
42 type = "fixed",
43 fixed = {
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"),
56 drawtype = "nodebox",
57 paramtype = "light",
58 paramtype2 = "facedir",
59 tiles = {
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,
68 light_source = 13,
69 walkable = false,
70 groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
71 node_box = {
72 type = "fixed",
73 fixed = {
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',
86 recipe = {
87 {'hades_core:glass', '', ''},
88 {'glowcrystals:glowdust', '', ''},
89 {'hades_core:glass', '', ''},
92 minetest.register_craft({
93 output = 'hades_lamps:lamp_wall 2',
94 recipe = {
95 {'hades_core:glass', '', ''},
96 {'hades_torches:torch', '', ''},
97 {'hades_core:glass', '', ''},
101 minetest.register_craft({
102 output = 'hades_lamps:lantern 2',
103 recipe = {
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',
111 recipe = {
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',
120 recipe = {
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',
128 recipe = {
129 {'', 'hades_core:steel_ingot', ''},
130 {'hades_core:glass', 'hades_torches:torch', 'hades_core:glass'},
131 {'', 'hades_core:steel_ingot', ''},