sorcery  mixing-stand.lua at [58edda50fc]

File mixing-stand.lua artifact 4afb0a651e part of check-in 58edda50fc


local box = {
	type = 'fixed';
	fixed = {
		-0.5, -0.5, -0.5;
		 0.5,  0.5,  0.5;
	};
}
local stand_set_formspec = function(meta)
end
local stand_update = function(meta)
	local inv = meta:get_inventory()

end
minetest.register_node('sorcery:mixing_stand', {
	description = 'Mixing Stand';
	drawtype = 'mesh';
	mesh = 'sorcery-mixing-stand.obj';
	sunlight_propagates = true;
	paramtype = 'light';
	paramtype2 = 'facedir';
	after_dig_node = sorcery.lib.node.purge_only{'ingredients','reagent','fuel'};
	tiles = {
		'default_tree.png';
		'default_stone.png';
		"default_steel_block.png";
		"default_copper_block.png";
		'default_water.png';
		'default_tree_top.png';
	};
	groups = {
		cracky = 2, heavy = 1;
		sorcery_alchemy = 1;
	};
	_sorcery = {
		recipe = {
			note = 'Mix potions and reagents to create new substances';
		};
	};
	selection_box = box, collision_box = box;
	on_construct = function(pos)
		local meta = minetest.get_meta(pos)
		local inv = meta:get_inventory()
		inv:set_size('ingredients', 3)
		inv:set_size('reagent', 1)
		inv:set_size('preview', 1)
		inv:set_size('fuel', 1)
		stand_set_formspec(meta)
	end;

	allow_metadata_inventory_move = function(pos, flst, fidx, tlst, tidx, q, who) end;
	on_metadata_inventory_move = function(pos, flst, fidx, tlst, tidx, q, who) end;

	allow_metadata_inventory_put = function(pos, list, idx, stack, who) end;
	on_metadata_inventory_put = function(pos, list, idx, stack, who) end;

	allow_metadata_inventory_take = function(pos, list, idx, stack, who) end;
	on_metadata_inventory_take = function(pos, list, idx, stack, who) end;
})