How I make when i don't have mobs mod my own mod load a .lua
I mean, if i don't have mobs mod, and i have the api in my mod, the api be loaded, if i have the mobs mod then don't...
How i make that?
I tried with this:
But i think that don't going to work how i want.
How i make that?
I tried with this:
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("mobs") ~= nil ) then
dofile(minetest.get_modpath("extramobs").."/api.lua"),
end
But i think that don't going to work how i want.