7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
local stages = maxBright
local stageTimeout = burnTime / stages
local function chemLampID(n)
if n == stages then return 'starlit_tech:chem_lamp' end
return string.format('starlit_tech:chem_lamp_%s',n)
end
local fab = starlit.type.fab {
element = { carbon = 8, magnesium = 2 };
cost = { power = 100 };
flag = { print = true };
time = { print = 5 };
};
for i = stages, 0, -1 do
minetest.register_node(chemLampID(i), {
short_description = 'Chem Lamp';
|
|
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
local stages = maxBright
local stageTimeout = burnTime / stages
local function chemLampID(n)
if n == stages then return 'starlit_tech:chem_lamp' end
return string.format('starlit_tech:chem_lamp_%s',n)
end
local fab = starlit.type.fab {
element = { carbon = 4, magnesium = 1 };
cost = { power = 100 };
flag = { print = true };
time = { print = 5 };
};
for i = stages, 0, -1 do
minetest.register_node(chemLampID(i), {
short_description = 'Chem Lamp';
|