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
if minetest.get_modpath("nether") then
-- the mod exists
end
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 doYour 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
Users browsing this forum: No registered users and 1 guest