]> git.lizzy.rs Git - xdecor.git/blob - init.lua
Add settings and compatibility with moreblocks and stairs
[xdecor.git] / init.lua
1 --local t = os.clock()
2 xdecor = {}
3 local modpath = minetest.get_modpath("xdecor")
4
5 -- Handlers.
6 dofile(modpath.."/handlers/animations.lua")
7 dofile(modpath.."/handlers/helpers.lua")
8 dofile(modpath.."/handlers/nodeboxes.lua")
9 dofile(modpath.."/handlers/registration.lua")
10
11 -- Node and others
12 dofile(modpath.."/src/alias.lua")
13 dofile(modpath.."/src/nodes.lua")
14 dofile(modpath.."/src/recipes.lua")
15
16 -- Elements
17 local submod = {
18         "chess",
19         "cooking",
20         "enchanting",
21         "hive",
22         "itemframe",
23         "mailbox",
24         "mechanisms",
25         "rope",
26         "workbench"
27 }
28
29 for _, name in ipairs(submod) do
30         local enable = not(minetest.settings:get_bool("disable_xdecor_"..name))
31         if enable then
32                 dofile(modpath.."/src/"..name..".lua")
33         end
34 end
35
36
37 --print(string.format("[xdecor] loaded in %.2f ms", (os.clock()-t)*1000))