Crafting recipe added. When unified_inventory is installed, crafting guide
is expanded with 'freezing' type and ice generation recipe.
What's left: textures and look.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Freezer now accepts pipe connections from all sides, thanks to improved
pipe detection logic in functions.lua. Function that checks if an element
belongs to an array has been made public to all module files, module
has been rewritten to utilize this function instead of duplicating
code.
What's left: textures, crafting.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Freezer now interacts with tubelib devices and can be a part of
complex machines (i.e. paired with Liquid Sampler).
Minor code adjustments: inventory reshaping, on_punch logic.
What's left: textures, crafting.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Freezer can now work as a standalone device, producing ice
from water supplied in bucket or through pipes.
What works: ice production logic, manual on/off.
Todo: tubelib integration (tubes and message i/o), crafting,
textures.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Simple freezer node created to test pipeworks water supply.
Node has temporary textures, no formspecs and no inventories.
When punched node shows if water is flowing into it via pipes.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>