unified_inventory_plus/init.lua

46 lines
812 B
Lua

-- Unified Inventory Plus for Minetest 0.4.8+
local modpath = minetest.get_modpath(minetest.get_current_modname())
unified_inventory_plus = {
-- 1 2 3
-- 4 5 6
-- 7 8 9
craft_patterns = {
{1},
{1,2,4,5},
{1,2,3,4,5,6,7,8,9},
{1,4,7},
{2,5,8},
{2,5},
{4,6,7,8,9},
{4,6,8},
{1,3,5,7,9},
{1,3,7,9},
{2,4,6,8},
{2,4,5,6,8},
{1,2,4,5,6,7,8,9},
{1,4,5,7,8,9},
{5,7,8,9},
{4,7,8},
{1,2,3,4,5,6},
{1,3,4,6},
{1,3,4,6,7,9},
{1,3,4,5,6,7,8,9},
{1,2,3,4,6,7,9},
{1,3,4,5,6,7,9},
{1,2,3,4,5,6,8},
{1,2,3,4,6,7,8,9},
},
}
dofile(modpath.."/functions.lua")
-- Functionalities are independants.
-- Comment the following lines to disable those you don't want
dofile(modpath.."/craft_all.lua")
dofile(modpath.."/craft_organize.lua")
dofile(modpath.."/craft_rotate.lua")