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