Something like 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 not( minetest.get_modpath("dependency_mod")) then
dofile(minetest.get_modpath("Your_mod").."/dependency_code.lua"),
end
You justly include the desired and needed file in your mod folder, this code will load the file, if the player has that mod already, you "dependency_code.lua" won't load for skip incompatibility, but if the player doesn't have it hen the mod loads the file and you don't need to download anything! What do you think? :)