currency/init.lua

22 lines
735 B
Lua
Raw Normal View History

2018-09-22 00:27:03 +02:00
local modpath = minetest.get_modpath("currency")
minetest.log("info", "Currency mod loading...")
2018-09-22 00:27:03 +02:00
dofile(modpath.."/craftitems.lua")
minetest.log("info", "[Currency] Craft_items Loaded!")
2018-09-22 00:27:03 +02:00
dofile(modpath.."/shop.lua")
minetest.log("info", "[Currency] Shop Loaded!")
2018-09-22 00:27:03 +02:00
dofile(modpath.."/barter.lua")
minetest.log("info", "[Currency] Barter Loaded!")
2018-09-22 00:27:03 +02:00
dofile(modpath.."/safe.lua")
minetest.log("info", "[Currency] Safe Loaded!")
2018-09-22 00:27:03 +02:00
dofile(modpath.."/crafting.lua")
minetest.log("info", "[Currency] Crafting Loaded!")
2018-09-22 00:27:03 +02:00
if minetest.settings:get_bool("creative_mode") then
minetest.log("info", "[Currency] Creative mode in use, skipping basic income.")
2018-09-22 00:27:03 +02:00
else
dofile(modpath.."/income.lua")
minetest.log("info", "[Currency] Income Loaded!")
2018-09-22 00:27:03 +02:00
end