added settings to disable mod support.
parent
ddb1a38efa
commit
47d4c4de35
4
init.lua
4
init.lua
|
@ -8,10 +8,10 @@ dofile(minetest.get_modpath('tombs')..'/gravestones.lua')
|
||||||
dofile(minetest.get_modpath('tombs')..'/formspec.lua')
|
dofile(minetest.get_modpath('tombs')..'/formspec.lua')
|
||||||
|
|
||||||
--support for other mods
|
--support for other mods
|
||||||
if minetest.get_modpath('default') then
|
if minetest.get_modpath('default') and (minetest.settings:get_bool('tombs.load_default')) then
|
||||||
dofile(minetest.get_modpath('tombs')..'/default.lua')
|
dofile(minetest.get_modpath('tombs')..'/default.lua')
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.get_modpath('wool') then
|
if minetest.get_modpath('wool') and (minetest.settings:get_bool('tombs.load_wool')) then
|
||||||
dofile(minetest.get_modpath('tombs')..'/wool.lua')
|
dofile(minetest.get_modpath('tombs')..'/wool.lua')
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
code:
|
code:
|
||||||
CC0 Nathan Salapat
|
GNU GPLv3 Nathan Salapat
|
||||||
|
|
||||||
Media:
|
Media:
|
||||||
Gravestone Machine texture:
|
Gravestone Machine texture:
|
||||||
|
|
3
mod.conf
3
mod.conf
|
@ -1 +1,4 @@
|
||||||
name = tombs
|
name = tombs
|
||||||
|
description = Adds many shapes and styles of tombstones.
|
||||||
|
depends = default, bones
|
||||||
|
optional_depends = wool
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
tombs.load_wool (Support wool mod?) bool true
|
||||||
|
tombs.load_default (Support default mod?) bool true
|
Loading…
Reference in New Issue