-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsewer_light.lua
108 lines (104 loc) · 2.73 KB
/
sewer_light.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
minetest.register_node("mylights:sewer_light_30", {
description = "Sewer Light 30w",
tiles = {"mylights_sewer_light.png"},
drawtype = "nodebox",
paramtype = "light",
groups = {snappy=2, cracky = 2},
sunlight_propagates = true,
light_source = 5,
node_box = {
type = "fixed",
fixed = {
{-0.125, 0.125, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
{-0.1875, 0.1875, -0.0625, 0.1875, 0.5, 0.0625}, -- NodeBox2
{-0.0625, 0.1875, -0.1875, 0.0625, 0.5, 0.1875}, -- NodeBox3
}
},
})
--craft
minetest.register_craft({
output = "mylights:sewer_light_30 5",
recipe = {
{'','wool:black',''},
{'','wool:yellow',''},
{'','mylights:lightbulb30',''}
}
})
minetest.register_node("mylights:sewer_light_60", {
description = "Sewer Light 60w",
tiles = {"mylights_sewer_light.png"},
drawtype = "nodebox",
paramtype = "light",
groups = {snappy=2, cracky = 2, not_in_creative_inventory=1},
sunlight_propagates = true,
light_source = 8,
node_box = {
type = "fixed",
fixed = {
{-0.125, 0.125, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
{-0.1875, 0.1875, -0.0625, 0.1875, 0.5, 0.0625}, -- NodeBox2
{-0.0625, 0.1875, -0.1875, 0.0625, 0.5, 0.1875}, -- NodeBox3
}
},
})
--craft
minetest.register_craft({
output = "mylights:sewer_light_60 5",
recipe = {
{'','wool:black',''},
{'','wool:yellow',''},
{'','mylights:lightbulb60',''}
}
})
minetest.register_node("mylights:sewer_light_90", {
description = "Sewer Light 90w",
tiles = {"mylights_sewer_light.png"},
drawtype = "nodebox",
paramtype = "light",
groups = {snappy=2, cracky = 2, not_in_creative_inventory=1},
sunlight_propagates = true,
light_source = 11,
node_box = {
type = "fixed",
fixed = {
{-0.125, 0.125, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
{-0.1875, 0.1875, -0.0625, 0.1875, 0.5, 0.0625}, -- NodeBox2
{-0.0625, 0.1875, -0.1875, 0.0625, 0.5, 0.1875}, -- NodeBox3
}
},
})
--craft
minetest.register_craft({
output = "mylights:sewer_light_90 5",
recipe = {
{'','wool:black',''},
{'','wool:yellow',''},
{'','mylights:lightbulb90',''}
}
})
minetest.register_node("mylights:sewer_light_120", {
description = "Sewer Light 120w",
tiles = {"mylights_sewer_light.png"},
drawtype = "nodebox",
paramtype = "light",
groups = {snappy=2, cracky = 2, not_in_creative_inventory=1},
sunlight_propagates = true,
light_source = 14,
node_box = {
type = "fixed",
fixed = {
{-0.125, 0.125, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
{-0.1875, 0.1875, -0.0625, 0.1875, 0.5, 0.0625}, -- NodeBox2
{-0.0625, 0.1875, -0.1875, 0.0625, 0.5, 0.1875}, -- NodeBox3
}
},
})
--craft
minetest.register_craft({
output = "mylights:sewer_light_120 5",
recipe = {
{'','wool:black',''},
{'','wool:yellow',''},
{'','mylights:lightbulb120',''}
}
})