2015-01-11 22:21:33 +01:00
|
|
|
--[[
|
2015-01-12 17:46:22 +01:00
|
|
|
More Blocks: Stairs+
|
2015-01-11 22:21:33 +01:00
|
|
|
|
2020-01-01 04:09:24 +01:00
|
|
|
Copyright © 2011-2020 Hugo Locurcio and contributors.
|
2015-01-11 22:21:33 +01:00
|
|
|
Licensed under the zlib license. See LICENSE.md for more information.
|
|
|
|
--]]
|
|
|
|
|
2018-03-04 12:16:45 +01:00
|
|
|
-- Nodes will be called <modname>:{stair,slab,panel,micro,slope}_<subname>
|
2022-06-13 06:10:36 +02:00
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
local S = minetest.get_translator(modname)
|
2014-03-09 10:38:18 +01:00
|
|
|
|
2022-06-13 06:10:36 +02:00
|
|
|
stairsplus = {
|
|
|
|
version = {3, 0, 0},
|
|
|
|
fork = "minetest_mods",
|
2014-03-09 10:38:18 +01:00
|
|
|
|
2022-06-13 06:10:36 +02:00
|
|
|
modname = modname,
|
|
|
|
modpath = modpath,
|
|
|
|
|
|
|
|
S = S,
|
|
|
|
|
|
|
|
has = {
|
|
|
|
basic_materials = minetest.get_modpath("basic_materials"),
|
|
|
|
default = minetest.get_modpath("default"),
|
|
|
|
gloopblocks = minetest.get_modpath("gloopblocks"),
|
|
|
|
stairs = minetest.get_modpath("stairs"),
|
|
|
|
technic = minetest.get_modpath("technic"),
|
|
|
|
prefab = minetest.get_modpath("prefab"),
|
|
|
|
wool = minetest.get_modpath("wool"),
|
|
|
|
},
|
|
|
|
|
|
|
|
log = function(level, messagefmt, ...)
|
|
|
|
return minetest.log(level, ("[%s] %s"):format(modname, messagefmt:format(...)))
|
|
|
|
end,
|
|
|
|
|
|
|
|
dofile = function(...)
|
|
|
|
return dofile(table.concat({modpath, ...}, DIR_DELIM) .. ".lua")
|
|
|
|
end,
|
|
|
|
}
|
2014-03-09 10:38:18 +01:00
|
|
|
|
2022-06-14 01:11:20 +02:00
|
|
|
stairsplus.dofile("settings")
|
|
|
|
stairsplus.dofile("util")
|
|
|
|
stairsplus.dofile("resources", "init")
|
|
|
|
stairsplus.dofile("api", "init")
|
|
|
|
stairsplus.dofile("shapes", "init")
|
|
|
|
stairsplus.dofile("craft_schemas")
|
|
|
|
stairsplus.dofile("circular_saw")
|
|
|
|
stairsplus.dofile("compat", "init")
|