323
324
325
326
327
328
329
330
331
332
333
334
335
336
...
406
407
408
409
410
411
412
413
414
415
416
417
418
419
...
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
|
drawtype = "mesh";
after_dig_node = sorcery.lib.node.purge_container;
mesh = 'sorcery-kiln-' .. state .. '.obj';
drop = id;
groups = {
cracky = (state == 'open' and 2) or nil;
sorcery_metallurgy = 1;
not_in_creative_inventory = (state == 'open') and nil or 1;
};
sunlight_propagates = true;
paramtype1 = 'light';
paramtype2 = 'facedir';
selection_box = box[state];
collision_box = box[state];
................................................................................
_proto = kind;
description = desc;
drop = id;
after_dig_node = sorcery.lib.node.purge_container;
groups = {
cracky = (not active and 2) or nil;
sorcery_metallurgy = 1;
not_in_creative_inventory = active and 1 or nil;
};
paramtype2 = 'facedir';
light_source = (active and 9) or 0;
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
................................................................................
recipe = recipe;
output = id;
}
end
for _, t in pairs {
{1, nil, 'clay'};
{2, 'hot','aluminum'};
{3, 'volcanic','platinum'};
{4, 'stellar','duridium'};
{5, 'nova','impervium'};
} do register_kiln {
temp = t[1], temp_name = t[2];
material = t[3];
size = 3, outsize = 4, fuelsize = 1; -- future-proofing
}
for _, s in pairs {
|
|
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
...
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
...
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
|
drawtype = "mesh";
after_dig_node = sorcery.lib.node.purge_container;
mesh = 'sorcery-kiln-' .. state .. '.obj';
drop = id;
groups = {
cracky = (state == 'open' and 2) or nil;
sorcery_metallurgy = 1;
sorcery_tech = 1;
not_in_creative_inventory = (state == 'open') and nil or 1;
};
sunlight_propagates = true;
paramtype1 = 'light';
paramtype2 = 'facedir';
selection_box = box[state];
collision_box = box[state];
................................................................................
_proto = kind;
description = desc;
drop = id;
after_dig_node = sorcery.lib.node.purge_container;
groups = {
cracky = (not active and 2) or nil;
sorcery_metallurgy = 1;
sorcery_tech = 1;
not_in_creative_inventory = active and 1 or nil;
};
paramtype2 = 'facedir';
light_source = (active and 9) or 0;
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
................................................................................
recipe = recipe;
output = id;
}
end
for _, t in pairs {
{1, nil, 'clay'};
-- {2, 'hot','aluminum'};
-- {3, 'volcanic','platinum'};
-- {4, 'stellar','duridium'};
-- {5, 'nova','impervium'};
} do register_kiln {
temp = t[1], temp_name = t[2];
material = t[3];
size = 3, outsize = 4, fuelsize = 1; -- future-proofing
}
for _, s in pairs {
|