first commit
Some checks failed
luacheck / lint (push) Has been cancelled

This commit is contained in:
Rainer 2025-08-22 02:30:16 +02:00
commit 82aea283b7
45 changed files with 2134 additions and 0 deletions

28
init.lua Normal file
View file

@ -0,0 +1,28 @@
local modpath = minetest.get_modpath("currency")
minetest.log("info", "Currency mod loading...")
currency = {}
if minetest.global_exists("default") then
currency.node_sound_wood_defaults = default.node_sound_wood_defaults
else
currency.node_sound_wood_defaults = function() end
end
dofile(modpath.."/craftitems.lua")
minetest.log("info", "[Currency] Craft_items Loaded!")
dofile(modpath.."/shop.lua")
minetest.log("info", "[Currency] Shop Loaded!")
dofile(modpath.."/barter.lua")
minetest.log("info", "[Currency] Barter Loaded!")
dofile(modpath.."/safe.lua")
minetest.log("info", "[Currency] Safe Loaded!")
dofile(modpath.."/crafting.lua")
minetest.log("info", "[Currency] Crafting Loaded!")
if minetest.settings:get_bool("creative_mode") then
minetest.log("info", "[Currency] Creative mode in use, skipping basic income.")
else
dofile(modpath.."/income.lua")
minetest.log("info", "[Currency] Income Loaded!")
end