File: init.lua

package info (click to toggle)
minetest-mod-currency 20181109-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 268 kB
  • sloc: makefile: 2
file content (24 lines) | stat: -rw-r--r-- 870 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local modpath = minetest.get_modpath("currency")

-- internationalization boilerplate
local S, NS = dofile(modpath.."/intllib.lua")

minetest.log("info", S("Currency mod loading..."))

dofile(modpath.."/craftitems.lua")
minetest.log("info", "[Currency] "..S("Craft_items Loaded!"))
dofile(modpath.."/shop.lua")
minetest.log("info", "[Currency] "..S("Shop Loaded!"))
dofile(modpath.."/barter.lua")
minetest.log("info", "[Currency] "..S("Barter Loaded!"))
dofile(modpath.."/safe.lua")
minetest.log("info", "[Currency] "..S("Safe Loaded!"))
dofile(modpath.."/crafting.lua")
minetest.log("info", "[Currency] "..S("Crafting Loaded!"))

if minetest.settings:get_bool("creative_mode") then
	minetest.log("info", "[Currency] "..S("Creative mode in use, skipping basic income."))
else
	dofile(modpath.."/income.lua")
	minetest.log("info", "[Currency] "..S("Income Loaded!"))
end