Use settings to determine spawn chance, frequency, level, & light requirements

This commit is contained in:
Jordan Irwin
2021-05-08 12:23:00 -07:00
parent 7ca26b4105
commit 7edfb6cb9b
5 changed files with 122 additions and 18 deletions

View File

@@ -1,8 +1,17 @@
sneeker = {}
sneeker.modname = core.get_current_modname()
sneeker.modpath = core.get_modpath(sneeker.modname)
dofile(minetest.get_modpath("sneeker").."/tnt_function.lua")
dofile(minetest.get_modpath("sneeker").."/spawn.lua")
local scripts = {
"settings",
"tnt_function",
"spawn",
}
for _, script in ipairs(scripts) do
dofile(sneeker.modpath .. "/" .. script .. ".lua")
end
local function jump(self, pos, direction)