Page 1 of 1

depending on other mods

PostPosted: Fri Oct 16, 2015 23:40
by superdude
I'm making a mod-pack that adds at least 20 dimensions or more it going to need the nether mod to run how do i do that?

Re: depending on other mods

PostPosted: Sat Oct 17, 2015 00:22
by Don
You need a depends.txt file in your mod folder. In depends.txt add nether
If it is a modpack and more than one mod requires nether then you need to add a depends.txt to each mod.

Re: depending on other mods

PostPosted: Sat Oct 17, 2015 08:19
by Hybrid Dog
there are more than one nether mods

you could additionally test if the node you need (or other things) exists, e.g.
nether_valid = minetest.registered_nodes["nether:torch"] and true

Re: depending on other mods

PostPosted: Sat Oct 17, 2015 11:50
by Don
If you are just using a few nodes from nether then it might be good to just add them to your mod. Nether has a licence WTFPL. That means you could use the nodes in your mod. Nether has not been updated in 3 years so it might be a good idea to add the things you need to your mod.

Re: depending on other mods

PostPosted: Sat Oct 17, 2015 22:04
by superdude
thanks a lot i`ll try that

Re: depending on other mods

PostPosted: Sat Oct 17, 2015 22:27
by kaadmy
Hybrid Dog wrote:there are more than one nether mods

you could additionally test if the node you need (or other things) exists, e.g.
nether_valid = minetest.registered_nodes["nether:torch"] and true

And if you wanted to check if a mod(not a specific node) exists, you can do
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if minetest.get_modpath("nether") then
    -- the mod exists
end

Re: depending on other mods

PostPosted: Sun Oct 18, 2015 09:10
by Hybrid Dog
kaadmy wrote:
Hybrid Dog wrote:there are more than one nether mods

you could additionally test if the node you need (or other things) exists, e.g.
nether_valid = minetest.registered_nodes["nether:torch"] and true

And if you wanted to check if a mod(not a specific node) exists, you can do
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if minetest.get_modpath("nether") then
    -- the mod exists
end

l prefer the other way, l usually don't need the mod but the globals it adds