cannabis_mod/cannabis/init.lua

31 lines
764 B
Lua
Raw Normal View History

2020-05-07 09:06:10 -07:00
--aliases
--minetest.get_modpath("cannabis")
minetest.register_alias("canapa","cannabis:canapa")
--tools
2020-05-07 08:31:42 -07:00
cannabis = {} -- A global Object for the mod
cannabis.path = minetest.get_modpath("cannabis") -- The path of the mod
local path = cannabis.path
-- Get Boilerplate to translate
local S
if(minetest.get_translator) then
S = minetest.get_translator(minetest.get_current_modname())
else
S = function ( s ) return s end
end
2020-05-07 09:06:10 -07:00
cannabis.S = S -- Stores the boilerplate for global access
2020-05-02 11:18:55 -07:00
2017-07-15 13:22:02 -07:00
dofile(path.."/tools.lua")
dofile(path.."/canapa.lua")
dofile(path.."/node_ingot.lua")
dofile(path.."/craftitem.lua")
2017-07-15 13:22:02 -07:00
dofile(path.."/armor.lua")
dofile(path.."/joint.lua")
dofile(path.."/canapa_rossa.lua")
dofile(path.."/craftred.lua")
dofile(path.."/rope.lua")