moarmour/init.lua
Nathan Fritzler bace2c1686
Add ediblestuff_api as an optional dependancy.
This will allow players to eat chocolate, waffle, and candycane armor,
even while wearing it, if ediblestuff_api is present
2022-01-26 13:16:46 -07:00

17 lines
466 B
Lua

local S = minetest.get_translator(minetest.get_current_modname())
local moarmour_path = minetest.get_modpath(minetest.get_current_modname())
moarmour = {
path = moarmour_path,
get_translator = S
}
-- Loading the files --
dofile(moarmour_path.."/nodes.lua")
dofile(moarmour_path.."/crafts.lua")
dofile(moarmour_path.."/armour.lua")
-- Optional mod-specific stuff --
if minetest.get_modpath("ediblestuff_api") then
dofile(moarmour_path.."/make_edible.lua")
end