depending on other mods

superdude
New member
 
Posts: 9
Joined: Mon Jul 06, 2015 21:40
In-game: aslar

depending on other mods

by superdude » Fri Oct 16, 2015 23:40

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?
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: depending on other mods

by Don » Sat Oct 17, 2015 00:22

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.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: depending on other mods

by Hybrid Dog » Sat Oct 17, 2015 08:19

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
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: depending on other mods

by Don » Sat Oct 17, 2015 11:50

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.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

superdude
New member
 
Posts: 9
Joined: Mon Jul 06, 2015 21:40
In-game: aslar

Re: depending on other mods

by superdude » Sat Oct 17, 2015 22:04

thanks a lot i`ll try that
 

User avatar
kaadmy
Member
 
Posts: 627
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: depending on other mods

by kaadmy » Sat Oct 17, 2015 22:27

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
Never paint white stripes on roads near Zebra crossings.
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: depending on other mods

by Hybrid Dog » Sun Oct 18, 2015 09:10

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
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron