sorcery  Diff

Differences From Artifact [3776b1d392]:

To Artifact [bc18a463a6]:


   391    391   		end;
   392    392   		_proto = {
   393    393   			wood = wood;
   394    394   		};
   395    395   		groups = {
   396    396   			sorcery_wand_stand = 1;
   397    397   			choppy = 2;
   398         -			oddly_breakable_by_hand = 2;
          398  +			dig_immediate = 2;
   399    399   		};
   400    400   	}
   401    401   	minetest.register_node(name, u.tbl.merge(auto,extra))
   402    402   end
   403    403   local rack_update = function(pos)
   404    404   	local meta = minetest.get_meta(pos)
   405    405   	local inv = meta:get_inventory()
................................................................................
   464    464   			'default_diamond_block.png';
   465    465   			'default_copper_block.png';
   466    466   			'default_pine_wood.png';
   467    467   			'default_junglewood.png';
   468    468   		};
   469    469   		selection_box = hitbox;
   470    470   		collision_box = hitbox;
   471         -		use_texture_alpha = true;
          471  +		use_texture_alpha = 'blend';
   472    472   		after_dig_node = sorcery.lib.node.purge_container;
   473    473   		on_construct = function(pos)
   474    474   			local meta = minetest.get_meta(pos)
   475    475   			local inv = meta:get_inventory()
   476    476   			inv:set_size('wands',10)
   477    477   			rack_update(pos)
   478    478   		end;
................................................................................
   485    485   		on_metadata_inventory_move = rack_update;
   486    486   		on_metadata_inventory_take = rack_update;
   487    487   		on_metadata_inventory_put = rack_update;
   488    488   		_proto = { wood = wood; };
   489    489   		groups = {
   490    490   			sorcery_wand_rack = 1;
   491    491   			choppy = 2;
   492         -			oddly_breakable_by_hand = 2;
          492  +			dig_immediate = 2;
   493    493   		};
   494    494   	}
   495    495   	minetest.register_node(name, rack)
   496    496   end
   497    497   for woodname, wood in pairs(sorcery.wands.materials.wood) do
   498    498   	local blank = u.image('sorcery_transparent.png'); -- haaaaack
   499    499   	local name = 'sorcery:wand_stand_' .. woodname
................................................................................
   569    569   						minetest.add_item(pos, stack)
   570    570   					end
   571    571   				end;
   572    572   				groups = {
   573    573   					not_in_creative_inventory = 1;
   574    574   					sorcery_wand_stand = 1;
   575    575   					choppy = 2;
   576         -					oddly_breakable_by_hand = 2;
          576  +					dig_immediate = 2;
   577    577   				};
   578    578   				on_rightclick = function(pos,node,user,stack)
   579    579   					local meta = minetest.get_meta(pos)
   580    580   					local stand = meta:get_inventory()
   581    581   					local wand = stand:get_stack('wand',1)
   582    582   					if stack:is_empty() then
   583    583   						stack = wand