A kind of depend, that if the mod that is depended is not found, then the mod load is still done.
If the mod is found, then it loads it first
Maybe in a preload.txt file
default
moreores optional
minetest.after(0, function()
.. your code here will be run after the game starts ..
end)
RabbiBob wrote:Presumably you're using functionality from the mod you're depending on so your mod would be broken. If you're not using a piece of the other mod, then why depend on it?
I can't remember right now why I wanted to defer a load until a later time (i.e. load something else first), but maybe that's what you're wanting?
cornernote wrote:You can do 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
minetest.after(0, function()
.. your code here will be run after the game starts ..
end)
RabbiBob wrote:Presumably you're using functionality from the mod you're depending on so your mod would be broken. If you're not using a piece of the other mod, then why depend on it?
I can't remember right now why I wanted to defer a load until a later time (i.e. load something else first), but maybe that's what you're wanting?
ArchZombie wrote:RabbiBob wrote:Presumably you're using functionality from the mod you're depending on so your mod would be broken. If you're not using a piece of the other mod, then why depend on it?
I can't remember right now why I wanted to defer a load until a later time (i.e. load something else first), but maybe that's what you're wanting?
Sometimes if e.g., another mod has useful functionality that can be integrated with this mod, then you can load it first. But it may not be necessary for the mod to function.
Users browsing this forum: No registered users and 2 guests