loading order fix, for correct spawning, added information files
* add files for description and dependencies on modern engines * add dependencies info into README * use mod namespaced for detection of nnsm and tnt * add tnt and nssm as optional dependencies
This commit is contained in:
parent
302e3c4b7c
commit
e86c2e8ddf
@ -46,6 +46,12 @@ inactivate the toxin in poisonous fungi (only in some of them obviously!).
|
|||||||
In other cases cooking may damage the beneficial propreties of the mushrooms
|
In other cases cooking may damage the beneficial propreties of the mushrooms
|
||||||
reducing their nutritional value.
|
reducing their nutritional value.
|
||||||
|
|
||||||
|
#### Dependencies
|
||||||
|
|
||||||
|
* default
|
||||||
|
* nssm (optional)
|
||||||
|
* tnt (optional)
|
||||||
|
|
||||||
#### ABMs
|
#### ABMs
|
||||||
|
|
||||||
Fungi are generated by ABM, so their growth will require some time.
|
Fungi are generated by ABM, so their growth will require some time.
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
default
|
default
|
||||||
|
nssm?
|
||||||
|
tnt?
|
||||||
|
1
description.txt
Normal file
1
description.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
NSSPF mod that adds wild plants (fungies)
|
17
init.lua
17
init.lua
@ -1,4 +1,15 @@
|
|||||||
local path = minetest.get_modpath("nsspf")
|
nsspf = {}
|
||||||
|
local mod = nsspf
|
||||||
|
|
||||||
dofile(path.."/spawn.lua")
|
mod.version = '20230616'
|
||||||
dofile(path.."/mushrooms.lua")
|
mod.mod_name = minetest.get_current_modname()
|
||||||
|
mod.path = minetest.get_modpath(mod.mod_name)
|
||||||
|
mod.world = minetest.get_worldpath()
|
||||||
|
mod.nssm = minetest.get_modpath("nssm")
|
||||||
|
mod.tnt = minetest.get_modpath("tnt")
|
||||||
|
mod.dat = {}
|
||||||
|
|
||||||
|
dofile(mod.path.."/mushrooms.lua")
|
||||||
|
dofile(mod.path.."/spawn.lua")
|
||||||
|
|
||||||
|
print("[MOD] loaded nsspf")
|
||||||
|
4
mod.conf
Normal file
4
mod.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name = nsspf
|
||||||
|
depends = default
|
||||||
|
optional_depends = nssm, tnt
|
||||||
|
description = NSSPF mod that adds wild plants (fungies)
|
@ -1690,7 +1690,7 @@ minetest.register_craft({
|
|||||||
burntime = 120,
|
burntime = 120,
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("nssm") then
|
if nsspf.nssm then
|
||||||
|
|
||||||
minetest.register_craftitem("nsspf:long_lasting_amadou", {
|
minetest.register_craftitem("nsspf:long_lasting_amadou", {
|
||||||
description = 'Long Lasting Amadou',
|
description = 'Long Lasting Amadou',
|
||||||
@ -1711,7 +1711,7 @@ if minetest.get_modpath("nssm") then
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.get_modpath("tnt") then
|
if nsspf.tnt then
|
||||||
|
|
||||||
minetest.register_craftitem("nsspf:lasting_amadou", {
|
minetest.register_craftitem("nsspf:lasting_amadou", {
|
||||||
description = 'Lasting Amadou',
|
description = 'Lasting Amadou',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user