TechDudie
2021-02-09 43acec290067f9aca534647d46ba1f13cfeb377a
commit | author | age
37d9d9 1 -- NOTE: The code is takes directly from VanessaE's homedecor mod.
K 2 -- I just made it the lights into indictive appliances for this mod.
3
4 -- This file supplies electric powered glowlights
5
6 -- Boilerplate to support localized strings if intllib mod is installed.
7 local S
8 if (minetest.get_modpath("intllib")) then
ee0765 9     dofile(minetest.get_modpath("intllib").."/intllib.lua")
S 10     S = intllib.Getter(minetest.get_current_modname())
37d9d9 11 else
ee0765 12     S = function (s) return s end
37d9d9 13 end
K 14
15 function technic_homedecor_node_is_owned(pos, placer)
16         local ownername = false
6154a0 17         if type(isprotect) == "function" then -- glomie's protection mod
37d9d9 18                 if not isprotect(5, pos, placer) then
K 19                         ownername = S("someone")
20                 end
ee0765 21         elseif type(protector) == "table" and type(protector.can_dig) == "function" then -- Zeg9's protection mod
37d9d9 22                 if not protector.can_dig(5, pos, placer) then
K 23                         ownername = S("someone")
24                 end
25         end
26
27         if ownername ~= false then
ee0765 28                 minetest.chat_send_player(placer:get_player_name(), S("Sorry, %s owns that spot."):format(ownername) )
37d9d9 29                 return true
K 30         else
31                 return false
32         end
33 end
34
ee0765 35 local dirs2 = {9,  18,  7, 12}
37d9d9 36
ee5c6c 37 local technic_homedecor_rotate_and_place = function(itemstack, placer, pointed_thing)
4f78a6 38     if not technic_homedecor_node_is_owned(pointed_thing.under, placer)
37d9d9 39        and not technic_homedecor_node_is_owned(pointed_thing.above, placer) then
ee0765 40         local node = minetest.get_node(pointed_thing.under)
37d9d9 41         if not minetest.registered_nodes[node.name] or not minetest.registered_nodes[node.name].on_rightclick then
K 42
43             local above = pointed_thing.above
44             local under = pointed_thing.under
45             local pitch = placer:get_look_pitch()
ee0765 46             local pname = minetest.get_node(under).name
37d9d9 47             local fdir = minetest.dir_to_facedir(placer:get_look_dir())
K 48             local wield_name = itemstack:get_name()
49
50             if not minetest.registered_nodes[pname]
51                 or not minetest.registered_nodes[pname].on_rightclick then
52
53                 local iswall = (above.x ~= under.x) or (above.z ~= under.z)
54                 local isceiling = (above.x == under.x) and (above.z == under.z) and (pitch > 0)
55                 local pos1 = above
56
57                 if minetest.registered_nodes[pname]["buildable_to"] then
58                     pos1 = under
59                     iswall = false
60                 end
61
ee0765 62                 if not minetest.registered_nodes[minetest.get_node(pos1).name]["buildable_to"] then return end
37d9d9 63
4f78a6 64                 if iswall then
ee0765 65                     minetest.add_node(pos1, {name = wield_name, param2 = dirs2[fdir+1] }) -- place wall variant
37d9d9 66                 elseif isceiling then
ee0765 67                     minetest.add_node(pos1, {name = wield_name, param2 = 20 }) -- place upside down variant
37d9d9 68                 else
ee0765 69                     minetest.add_node(pos1, {name = wield_name, param2 = 0 }) -- place right side up
37d9d9 70                 end
K 71
72                 if not homedecor_expect_infinite_stacks then
73                     itemstack:take_item()
74                     return itemstack
75                 end
76             end
77         else
78             minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack)
79         end
80     end
81 end
82
83 -- Yellow -- Half node
84 minetest.register_node('technic:homedecor_glowlight_half_yellow', {
85     description = S("Yellow Glowlight (thick)"),
86     drawtype = "nodebox",
87     tiles = {
88         'technic_homedecor_glowlight_yellow_tb.png',
89         'technic_homedecor_glowlight_yellow_tb.png',
90         'technic_homedecor_glowlight_thick_yellow_sides.png',
91         'technic_homedecor_glowlight_thick_yellow_sides.png',
92         'technic_homedecor_glowlight_thick_yellow_sides.png',
93         'technic_homedecor_glowlight_thick_yellow_sides.png'
94     },
95         selection_box = {
96                 type = "fixed",
97                 fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
98         },
99         node_box = {
100                 type = "fixed",
101                 fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
102         },
103
104     sunlight_propagates = false,
105     paramtype = "light",
106     paramtype2 = "facedir",
107     walkable = true,
108     sounds = default.node_sound_wood_defaults(),
109
110     groups = { snappy = 3 },
111     on_place = function(itemstack, placer, pointed_thing)
112         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
113         return itemstack
114          end,
115     on_construct = function(pos)
ee5c6c 116               technic.inductive_on_construct(pos, 100, "Yellow Glowlight (thick)")
37d9d9 117                end,
K 118     on_punch = function(pos, node, puncher)
ee5c6c 119               technic.inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_half_yellow_active")
37d9d9 120            end
K 121 })
122
123 minetest.register_node('technic:homedecor_glowlight_half_yellow_active', {
124     description = S("Yellow Glowlight (thick)"),
125     drawtype = "nodebox",
126     tiles = {
127         'technic_homedecor_glowlight_yellow_tb.png',
128         'technic_homedecor_glowlight_yellow_tb.png',
129         'technic_homedecor_glowlight_thick_yellow_sides.png',
130         'technic_homedecor_glowlight_thick_yellow_sides.png',
131         'technic_homedecor_glowlight_thick_yellow_sides.png',
132         'technic_homedecor_glowlight_thick_yellow_sides.png'
133     },
134         selection_box = {
135                 type = "fixed",
136                 fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
137         },
138         node_box = {
139                 type = "fixed",
140                 fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
141         },
142
143     sunlight_propagates = false,
144     paramtype = "light",
145     paramtype2 = "facedir",
146     walkable = true,
a8daa4 147     light_source = minetest.LIGHT_MAX,
37d9d9 148     sounds = default.node_sound_wood_defaults(),
K 149
150     groups = { snappy = 3, not_in_creative_inventory=1},
151     drop="technic:homedecor_glowlight_half_yellow",
152     on_place = function(itemstack, placer, pointed_thing)
153         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
154         return itemstack
155          end,
156     on_construct = function(pos)
ee5c6c 157               technic.inductive_on_construct(pos, 100, "Yellow Glowlight (thick)")
37d9d9 158                end,
K 159     on_punch = function(pos, node, puncher)
ee5c6c 160               technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_half_yellow")
37d9d9 161            end
K 162 })
163
164 -- Yellow -- Quarter node
165 minetest.register_node('technic:homedecor_glowlight_quarter_yellow', {
166     description = S("Yellow Glowlight (thin)"),
167     drawtype = "nodebox",
168     tiles = {
169         'technic_homedecor_glowlight_yellow_tb.png',
170         'technic_homedecor_glowlight_yellow_tb.png',
171         'technic_homedecor_glowlight_thin_yellow_sides.png',
172         'technic_homedecor_glowlight_thin_yellow_sides.png',
173         'technic_homedecor_glowlight_thin_yellow_sides.png',
174         'technic_homedecor_glowlight_thin_yellow_sides.png'
175     },
176         selection_box = {
177                 type = "fixed",
178                 fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
179         },
180         node_box = {
181                 type = "fixed",
182                 fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
183         },
184
185     sunlight_propagates = false,
186     paramtype = "light",
187     paramtype2 = "facedir",
188     walkable = true,
189     sounds = default.node_sound_wood_defaults(),
190
191     groups = { snappy = 3 },
192     on_place = function(itemstack, placer, pointed_thing)
193         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
194         return itemstack
195          end,
196     on_construct = function(pos)
ee5c6c 197               technic.inductive_on_construct(pos, 100, "Yellow Glowlight (thin)")
37d9d9 198                end,
K 199     on_punch = function(pos, node, puncher)
ee5c6c 200               technic.inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_quarter_yellow_active")
37d9d9 201            end
K 202 })
203
204 minetest.register_node('technic:homedecor_glowlight_quarter_yellow_active', {
205     description = S("Yellow Glowlight (thin)"),
206     drawtype = "nodebox",
207     tiles = {
208         'technic_homedecor_glowlight_yellow_tb.png',
209         'technic_homedecor_glowlight_yellow_tb.png',
210         'technic_homedecor_glowlight_thin_yellow_sides.png',
211         'technic_homedecor_glowlight_thin_yellow_sides.png',
212         'technic_homedecor_glowlight_thin_yellow_sides.png',
213         'technic_homedecor_glowlight_thin_yellow_sides.png'
214     },
215         selection_box = {
216                 type = "fixed",
217                 fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
218         },
219         node_box = {
220                 type = "fixed",
221                 fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
222         },
223
224     sunlight_propagates = false,
225     paramtype = "light",
226     paramtype2 = "facedir",
227     walkable = true,
a8daa4 228     light_source = minetest.LIGHT_MAX-1,
37d9d9 229     sounds = default.node_sound_wood_defaults(),
K 230
231     groups = { snappy = 3, not_in_creative_inventory=1},
232     drop="technic:homedecor_glowlight_quarter_yellow",
233     on_place = function(itemstack, placer, pointed_thing)
234         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
235         return itemstack
236          end,
237     on_construct = function(pos)
ee5c6c 238               technic.inductive_on_construct(pos, 100, "Yellow Glowlight (thin)")
37d9d9 239                end,
K 240     on_punch = function(pos, node, puncher)
ee5c6c 241               technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_quarter_yellow")
37d9d9 242            end
K 243 })
244
245
246 -- White -- half node
247 minetest.register_node('technic:homedecor_glowlight_half_white', {
248     description = S("White Glowlight (thick)"),
249     drawtype = "nodebox",
250     tiles = {
251         'technic_homedecor_glowlight_white_tb.png',
252         'technic_homedecor_glowlight_white_tb.png',
253         'technic_homedecor_glowlight_thick_white_sides.png',
254         'technic_homedecor_glowlight_thick_white_sides.png',
255         'technic_homedecor_glowlight_thick_white_sides.png',
256         'technic_homedecor_glowlight_thick_white_sides.png'
257     },
258         selection_box = {
259                 type = "fixed",
260                 fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
261         },
262         node_box = {
263                 type = "fixed",
264                 fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
265         },
266
267     sunlight_propagates = false,
268     paramtype = "light",
269     paramtype2 = "facedir",
270     walkable = true,
271     sounds = default.node_sound_wood_defaults(),
272
273     groups = { snappy = 3 },
274     on_place = function(itemstack, placer, pointed_thing)
275         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
276         return itemstack
277          end,
278     on_construct = function(pos)
ee5c6c 279               technic.inductive_on_construct(pos, 100, "White Glowlight (thick)")
37d9d9 280                end,
K 281     on_punch = function(pos, node, puncher)
ee5c6c 282               technic.inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_half_white_active")
37d9d9 283            end
K 284 })
285
286 minetest.register_node('technic:homedecor_glowlight_half_white_active', {
287     description = S("White Glowlight (thick)"),
288     drawtype = "nodebox",
289     tiles = {
290         'technic_homedecor_glowlight_white_tb.png',
291         'technic_homedecor_glowlight_white_tb.png',
292         'technic_homedecor_glowlight_thick_white_sides.png',
293         'technic_homedecor_glowlight_thick_white_sides.png',
294         'technic_homedecor_glowlight_thick_white_sides.png',
295         'technic_homedecor_glowlight_thick_white_sides.png'
296     },
297         selection_box = {
298                 type = "fixed",
299                 fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
300         },
301         node_box = {
302                 type = "fixed",
303                 fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
304         },
305
306     sunlight_propagates = false,
307     paramtype = "light",
308     paramtype2 = "facedir",
309     walkable = true,
a8daa4 310     light_source = minetest.LIGHT_MAX,
37d9d9 311     sounds = default.node_sound_wood_defaults(),
K 312
313     groups = { snappy = 3, not_in_creative_inventory=1},
314     drop="technic:homedecor_glowlight_half_white",
315     on_place = function(itemstack, placer, pointed_thing)
316         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
317         return itemstack
318          end,
319     on_construct = function(pos)
ee5c6c 320               technic.inductive_on_construct(pos, 100, "White Glowlight (thick)")
37d9d9 321                end,
K 322     on_punch = function(pos, node, puncher)
ee5c6c 323               technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_half_white")
37d9d9 324            end
K 325 })
326
327 -- White -- Quarter node
328 minetest.register_node('technic:homedecor_glowlight_quarter_white', {
329     description = S("White Glowlight (thin)"),
330     drawtype = "nodebox",
331     tiles = {
332         'technic_homedecor_glowlight_white_tb.png',
333         'technic_homedecor_glowlight_white_tb.png',
334         'technic_homedecor_glowlight_thin_white_sides.png',
335         'technic_homedecor_glowlight_thin_white_sides.png',
336         'technic_homedecor_glowlight_thin_white_sides.png',
337         'technic_homedecor_glowlight_thin_white_sides.png'
338     },
339         selection_box = {
340                 type = "fixed",
341                 fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
342         },
343         node_box = {
344                 type = "fixed",
345                 fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
346         },
347
348     sunlight_propagates = false,
349     paramtype = "light",
350     paramtype2 = "facedir",
351     walkable = true,
352     sounds = default.node_sound_wood_defaults(),
353
354     groups = { snappy = 3 },
355     on_place = function(itemstack, placer, pointed_thing)
356         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
357         return itemstack
358          end,
359     on_construct = function(pos)
ee5c6c 360               technic.inductive_on_construct(pos, 100, "White Glowlight (thin)")
37d9d9 361                end,
K 362     on_punch = function(pos, node, puncher)
ee5c6c 363               technic.inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_quarter_white_active")
37d9d9 364            end
K 365 })
366
367 minetest.register_node('technic:homedecor_glowlight_quarter_white_active', {
368     description = S("White Glowlight (thin)"),
369     drawtype = "nodebox",
370     tiles = {
371         'technic_homedecor_glowlight_white_tb.png',
372         'technic_homedecor_glowlight_white_tb.png',
373         'technic_homedecor_glowlight_thin_white_sides.png',
374         'technic_homedecor_glowlight_thin_white_sides.png',
375         'technic_homedecor_glowlight_thin_white_sides.png',
376         'technic_homedecor_glowlight_thin_white_sides.png'
377     },
378         selection_box = {
379                 type = "fixed",
380                 fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
381         },
382         node_box = {
383                 type = "fixed",
384                 fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
385         },
386
387     sunlight_propagates = false,
388     paramtype = "light",
389     paramtype2 = "facedir",
390     walkable = true,
a8daa4 391     light_source = minetest.LIGHT_MAX-1,
37d9d9 392     sounds = default.node_sound_wood_defaults(),
K 393
394     groups = { snappy = 3, not_in_creative_inventory=1},
395     drop="technic:homedecor_glowlight_quarter_white",
396     on_place = function(itemstack, placer, pointed_thing)
397         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
398         return itemstack
399          end,
400     on_construct = function(pos)
ee5c6c 401               technic.inductive_on_construct(pos, 100, "White Glowlight (thin)")
37d9d9 402                end,
K 403     on_punch = function(pos, node, puncher)
ee5c6c 404               technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_quarter_white")
37d9d9 405            end
K 406 })
407
408 -- Glowlight "cubes" - yellow
409 minetest.register_node('technic:homedecor_glowlight_small_cube_yellow', {
410     description = S("Yellow Glowlight (small cube)"),
411     drawtype = "nodebox",
412     tiles = {
413         'technic_homedecor_glowlight_cube_yellow_tb.png',
414         'technic_homedecor_glowlight_cube_yellow_tb.png',
415         'technic_homedecor_glowlight_cube_yellow_sides.png',
416         'technic_homedecor_glowlight_cube_yellow_sides.png',
417         'technic_homedecor_glowlight_cube_yellow_sides.png',
418         'technic_homedecor_glowlight_cube_yellow_sides.png'
419     },
420         selection_box = {
421                 type = "fixed",
422                 fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
423         },
424         node_box = {
425                 type = "fixed",
426                 fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
427         },
428
429     sunlight_propagates = false,
430     paramtype = "light",
431     paramtype2 = "facedir",
432     walkable = true,
433     sounds = default.node_sound_wood_defaults(),
434
435     groups = { snappy = 3 },
436     on_place = function(itemstack, placer, pointed_thing)
437         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
438         return itemstack
439          end,
440     on_construct = function(pos)
ee5c6c 441               technic.inductive_on_construct(pos, 50, "Yellow Glowlight (small cube)")
37d9d9 442                end,
K 443     on_punch = function(pos, node, puncher)
ee5c6c 444               technic.inductive_on_punch_off(pos, 50, "technic:homedecor_glowlight_small_cube_yellow_active")
37d9d9 445            end
K 446 })
447
448 minetest.register_node('technic:homedecor_glowlight_small_cube_yellow_active', {
449     description = S("Yellow Glowlight (small cube)"),
450     drawtype = "nodebox",
451     tiles = {
452         'technic_homedecor_glowlight_cube_yellow_tb.png',
453         'technic_homedecor_glowlight_cube_yellow_tb.png',
454         'technic_homedecor_glowlight_cube_yellow_sides.png',
455         'technic_homedecor_glowlight_cube_yellow_sides.png',
456         'technic_homedecor_glowlight_cube_yellow_sides.png',
457         'technic_homedecor_glowlight_cube_yellow_sides.png'
458     },
459         selection_box = {
460                 type = "fixed",
461                 fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
462         },
463         node_box = {
464                 type = "fixed",
465                 fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
466         },
467
468     sunlight_propagates = false,
469     paramtype = "light",
470     paramtype2 = "facedir",
471     walkable = true,
a8daa4 472     light_source = minetest.LIGHT_MAX-1,
37d9d9 473     sounds = default.node_sound_wood_defaults(),
K 474
475     groups = { snappy = 3, not_in_creative_inventory=1},
e64994 476     drop="technic:homedecor_glowlight_small_cube_yellow",
37d9d9 477     on_place = function(itemstack, placer, pointed_thing)
K 478         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
479         return itemstack
480          end,
481     on_construct = function(pos)
ee5c6c 482               technic.inductive_on_construct(pos, 50, "Yellow Glowlight (small cube)")
37d9d9 483                end,
K 484     on_punch = function(pos, node, puncher)
ee5c6c 485               technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_small_cube_yellow")
37d9d9 486            end
K 487 })
488
489 -- Glowlight "cubes" - white
490 minetest.register_node('technic:homedecor_glowlight_small_cube_white', {
491     description = S("White Glowlight (small cube)"),
492     drawtype = "nodebox",
493     tiles = {
494         'technic_homedecor_glowlight_cube_white_tb.png',
495         'technic_homedecor_glowlight_cube_white_tb.png',
496         'technic_homedecor_glowlight_cube_white_sides.png',
497         'technic_homedecor_glowlight_cube_white_sides.png',
498         'technic_homedecor_glowlight_cube_white_sides.png',
499         'technic_homedecor_glowlight_cube_white_sides.png'
500     },
501         selection_box = {
502                 type = "fixed",
503                 fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
504         },
505         node_box = {
506                 type = "fixed",
507                 fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
508         },
509
510     sunlight_propagates = false,
511     paramtype = "light",
512     paramtype2 = "facedir",
513     walkable = true,
514     sounds = default.node_sound_wood_defaults(),
515
516     groups = { snappy = 3 },
517     on_place = function(itemstack, placer, pointed_thing)
518         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
519         return itemstack
520          end,
521     on_construct = function(pos)
ee5c6c 522               technic.inductive_on_construct(pos, 50, "White Glowlight (small cube)")
37d9d9 523                end,
K 524     on_punch = function(pos, node, puncher)
ee5c6c 525               technic.inductive_on_punch_off(pos, 50, "technic:homedecor_glowlight_small_cube_white_active")
37d9d9 526            end
K 527 })
528
529 minetest.register_node('technic:homedecor_glowlight_small_cube_white_active', {
530     description = S("White Glowlight (small cube)"),
531     drawtype = "nodebox",
532     tiles = {
533         'technic_homedecor_glowlight_cube_white_tb.png',
534         'technic_homedecor_glowlight_cube_white_tb.png',
535         'technic_homedecor_glowlight_cube_white_sides.png',
536         'technic_homedecor_glowlight_cube_white_sides.png',
537         'technic_homedecor_glowlight_cube_white_sides.png',
538         'technic_homedecor_glowlight_cube_white_sides.png'
539     },
540         selection_box = {
541                 type = "fixed",
542                 fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
543         },
544         node_box = {
545                 type = "fixed",
546                 fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
547         },
548
549     sunlight_propagates = false,
550     paramtype = "light",
551     paramtype2 = "facedir",
552     walkable = true,
a8daa4 553     light_source = minetest.LIGHT_MAX-1,
37d9d9 554     sounds = default.node_sound_wood_defaults(),
K 555
556     groups = { snappy = 3, not_in_creative_inventory=1},
e64994 557     drop="technic:homedecor_glowlight_small_cube_white",
37d9d9 558     on_place = function(itemstack, placer, pointed_thing)
K 559         technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing)
560         return itemstack
561          end,
562     on_construct = function(pos)
ee5c6c 563               technic.inductive_on_construct(pos, 50, "White Glowlight (small cube)")
37d9d9 564                end,
K 565     on_punch = function(pos, node, puncher)
ee5c6c 566               technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_small_cube_white")
37d9d9 567            end
K 568 })
569
ee5c6c 570 technic.register_inductive_machine("technic:homedecor_glowlight_half_yellow")
K 571 technic.register_inductive_machine("technic:homedecor_glowlight_half_white")
572 technic.register_inductive_machine("technic:homedecor_glowlight_quarter_yellow")
573 technic.register_inductive_machine("technic:homedecor_glowlight_quarter_white")
574 technic.register_inductive_machine("technic:homedecor_glowlight_small_cube_yellow")
575 technic.register_inductive_machine("technic:homedecor_glowlight_small_cube_white")