building_lib/init.lua
BuckarooBanzay a512f79a97 tools
2022-11-02 19:39:36 +01:00

37 lines
849 B
Lua

local storage = minetest.get_mod_storage()
building_lib = {
-- name -> def
buildings = {},
-- name -> def
placements = {},
-- name -> def
conditions = {},
-- data storage
store = mapblock_lib.create_data_storage(storage)
}
local MP = minetest.get_modpath("building_lib")
dofile(MP .. "/register.lua")
dofile(MP .. "/get_groups.lua")
dofile(MP .. "/get_building.lua")
dofile(MP .. "/inventory.lua")
dofile(MP .. "/placements/default.lua")
dofile(MP .. "/can_build.lua")
dofile(MP .. "/do_build.lua")
dofile(MP .. "/chat.lua")
if minetest.get_modpath("mtt") and mtt.enabled then
dofile(MP .. "/can_build.spec.lua")
end
if minetest.settings:get_bool("building_lib.enable_example_buildings") then
dofile(MP .. "/example_buildings.lua")
end
if minetest.settings:get_bool("building_lib.enable_tools") then
dofile(MP .. "/tools.lua")
end