minetest/minetest_game — pull request #267 by MirceaKitsune (2014-07-07 14:18:39+00:00)
Title: Simple Workbench

Since minetest_game got unfrozen and merged with minetest_next, I thought to give this another shot. I'm once again suggesting my workbench mod, though this time included as the original mod rather than a modification to default.

The nice part about this workbench is that it modifies the player's own crafting area and inventory formspec, rather than using node inventories. This allows local prediction to work for crafting, whereas meta inventory is horribly laggy. It also guarantees that other players can't steal your materials while you're crafting, since they never leave your inventory.

How it works: When you right-click the workbench, your craft grid is resized and your inventory formspec updated and shown. However, your existing inventory formspec is first persisted. When you close the workbench, your previous inventory settings are restored. This allows the workbench to be compatible with mods that set their own inventory formspec, unless they change it during the moment you use a workbench of course.

As for license, both the code and textures are free to include under any license you see most fit for minetest_game. Also feel free to make any changes to this... do anything you want with it at all. I'd only like to see a 3x3 workbench included in some form at all.