diff --git a/init.lua b/init.lua index 1683c17..675cd36 100644 --- a/init.lua +++ b/init.lua @@ -8,10 +8,10 @@ dofile(minetest.get_modpath('tombs')..'/gravestones.lua') dofile(minetest.get_modpath('tombs')..'/formspec.lua') --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') 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') end diff --git a/license.txt b/license.txt index 29b6c96..e8356ee 100644 --- a/license.txt +++ b/license.txt @@ -1,5 +1,5 @@ code: -CC0 Nathan Salapat +GNU GPLv3 Nathan Salapat Media: Gravestone Machine texture: diff --git a/mod.conf b/mod.conf index 7fb292e..2bc2e34 100644 --- a/mod.conf +++ b/mod.conf @@ -1 +1,4 @@ name = tombs +description = Adds many shapes and styles of tombstones. +depends = default, bones +optional_depends = wool diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 0000000..1ed9da2 --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1,2 @@ +tombs.load_wool (Support wool mod?) bool true +tombs.load_default (Support default mod?) bool true