sorcery  Diff

Differences From Artifact [4e48d35701]:

To Artifact [eb69eaaf9d]:


    13     13   	tiles = {
    14     14   		'default_copper_block.png';
    15     15   		'default_steel_block.png';
    16     16   	};
    17     17   	groups = {
    18     18   		dig_immediate = 2;
    19     19   		attached_node = 1;
           20  +		sorcery_instantiate = 1;
    20     21   	};
    21     22   	sunlight_propagates = true;
    22     23   	paramtype = 'light', paramtype2 = 'wallmounted';
    23     24   	selection_box = { type='fixed', fixed = {-0.2,-0.5,-0.35; 0.3,0.1,0.4} };
    24     25   	collision_box = { type='fixed', fixed = {-0.2,-0.5,-0.35; 0.3,0.1,0.4} };
    25     26   	node_placement_prediction = '';
    26     27   	on_place = function(stack,who,where)
................................................................................
    47     48   		return stack
    48     49   	end;
    49     50   	on_rotate = function() return false end;
    50     51   	_sorcery = {
    51     52   		recipe = {
    52     53   			note = 'Extract syrups and oils from trees';
    53     54   		};
           55  +		on_load = function(pos,node)
           56  +			local tpos = pos + minetest.wallmounted_to_dir(node.param2)
           57  +			local tree = sorcery.tree.get(tpos)
           58  +			if not tree or tree.def.sap == false then return end;
           59  +			tapdrip(tree.def.sapliq, pos)
           60  +		end;
    54     61   	};
    55     62   })
    56     63   
    57     64   minetest.register_craft {
    58     65   	output = 'sorcery:tap';
    59     66   	recipe = {
    60     67   		{'','sorcery:screw_steel','basic_materials:steel_bar'};