forked from Mirrorlandia_minetest/mod-sneeker
Set variables 'sneaker.modname' & 'sneaker.modpath'
This commit is contained in:
parent
58ac8ed83c
commit
d9602eef55
15
init.lua
15
init.lua
@ -1,12 +1,15 @@
|
|||||||
sneaker = {}
|
sneaker = {}
|
||||||
|
sneaker.modname = minetest.get_current_modname()
|
||||||
|
sneaker.modpath = minetest.get_modpath(sneaker.modname)
|
||||||
|
|
||||||
--[[
|
local scripts = {
|
||||||
-- DISABLED!!!
|
"tnt_function",
|
||||||
do return end
|
"spawn",
|
||||||
--]]
|
}
|
||||||
|
|
||||||
dofile(minetest.get_modpath("sneaker").."/tnt_function.lua")
|
for I in pairs(scripts) do
|
||||||
dofile(minetest.get_modpath("sneaker").."/spawn.lua")
|
dofile(sneaker.modpath .. "/" .. scripts[I] .. ".lua")
|
||||||
|
end
|
||||||
|
|
||||||
local function jump(self,pos,direction)
|
local function jump(self,pos,direction)
|
||||||
local velocity = self.object:get_velocity()
|
local velocity = self.object:get_velocity()
|
||||||
|
Loading…
Reference in New Issue
Block a user