mirror of
https://bitbucket.org/kingarthursteam/cannons.git
synced 2024-12-02 19:53:48 +01:00
a8f7c1f09b
the moreores stuff will be enabled automatical if moreores installed
24 lines
839 B
Lua
24 lines
839 B
Lua
|
|
|
|
|
|
cannons = {}
|
|
cannons.MODPATH = minetest.get_modpath(minetest.get_current_modname())
|
|
|
|
|
|
dofile(cannons.MODPATH .."/settings.txt")
|
|
dofile(cannons.MODPATH .."/print_r.lua")
|
|
dofile(cannons.MODPATH .."/functions.lua")
|
|
dofile(cannons.MODPATH .."/items.lua")
|
|
dofile(cannons.MODPATH .."/cannonballs.lua")
|
|
|
|
if minetest.get_modpath("locks") ~=nil then
|
|
minetest.log("locks mod enabled. execute locks.lua")
|
|
dofile(cannons.MODPATH .."/locks.lua")--if the locks mod is installed execute this file
|
|
end
|
|
if minetest.get_modpath("moreores") ~=nil then
|
|
minetest.log("info","moreores mod enabled. execute moreores.lua")
|
|
dofile(cannons.MODPATH .."/moreores.lua")--if the moreores mod is installed execute this file
|
|
end
|
|
minetest.log("info", "[MOD]"..minetest.get_current_modname().." -- loaded from "..minetest.get_modpath(minetest.get_current_modname()))
|
|
|