sorcery  Diff

Differences From Artifact [45fd80ebe6]:

To Artifact [222da491b8]:


    22     22   
    23     23   local fragments_per_ingot = 4
    24     24   
    25     25   for _, c in pairs { 'clay', 'aluminum', 'platinum', 'duranium' } do
    26     26   	minetest.register_craftitem('sorcery:crucible_' .. c, {
    27     27   		description = sorcery.lib.str.capitalize(c .. ' crucible');
    28     28   		inventory_image = 'sorcery_crucible_' .. c .. '.png';
           29  +		groups = { sorcery_metallurgy = 1; }
    29     30   	})
    30     31   end
    31     32   
    32     33   minetest.register_craftitem('sorcery:crucible_clay_molding', {
    33     34   	description = sorcery.lib.str.capitalize('Crucible molding');
    34     35   	inventory_image = 'sorcery_crucible_clay_molding.png';
           36  +	groups = { sorcery_metallurgy = 1; }
    35     37   })
    36     38   
    37     39   minetest.register_craft {
    38     40   	recipe = {
    39     41   		{ 'default:clay_lump', '', 'default:clay_lump'};
    40     42   		{ 'default:clay_lump', '', 'default:clay_lump'};
    41     43   		{ 'default:clay_lump', 'default:clay_lump', 'default:clay_lump'};
................................................................................
   299    301   			description = desc;
   300    302   			drawtype = "mesh";
   301    303   			after_dig_node = sorcery.lib.node.purge_container;
   302    304   			mesh = 'sorcery-kiln-' .. state .. '.obj';
   303    305   			drop = id;
   304    306   			groups = {
   305    307   				cracky = (state == 'open' and 2) or nil;
          308  +				sorcery_metallurgy = 1;
   306    309   			};
   307    310   			sunlight_propagates = true;
   308    311   			paramtype1 = 'light';
   309    312   			paramtype2 = 'facedir';
   310    313   			selection_box = box[state];
   311    314   			collision_box = box[state];
   312    315   			tiles = tex[state];
................................................................................
   380    383   		minetest.register_node((active and id .. '_active') or id, {
   381    384   			_proto = kind;
   382    385   			description = desc;
   383    386   			drop = id;
   384    387   			after_dig_node = sorcery.lib.node.purge_container;
   385    388   			groups = {
   386    389   				cracky = (active and 2) or nil;
          390  +				sorcery_metallurgy = 1;
   387    391   			};
   388    392   			paramtype2 = 'facedir';
   389    393   			light_source = (active and 9) or 0;
   390    394   			on_construct = function(pos)
   391    395   				local meta = minetest.get_meta(pos)
   392    396   				local inv = meta:get_inventory()
   393    397   				inv:set_size('input',kind.size)