Add variable 'sneaker.spawn_cap':
Will set maximun number of sneakers that can be spawned in world at one time.
This commit is contained in:
parent
930d52cb3d
commit
85ca164e14
2
init.lua
2
init.lua
@ -9,6 +9,8 @@ function sneaker.log(message)
|
|||||||
minetest.log('action', '[' .. sneaker.modname .. '] ' .. message)
|
minetest.log('action', '[' .. sneaker.modname .. '] ' .. message)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sneaker.spawn_cap = minetest.setting_get('sneaker_spawn_cap') or 50
|
||||||
|
|
||||||
local scripts = {
|
local scripts = {
|
||||||
'tnt_function',
|
'tnt_function',
|
||||||
'spawn',
|
'spawn',
|
||||||
|
Loading…
Reference in New Issue
Block a user