Lua, how do you check if a mod is installed.
I would like to add items made of materials from other mods (e.g. bronze and obsidian), but I do not want to add additional dependencies.
Is there an easy way to find out if a mod is loaded?
I am looking for something like:
Is there an easy way to find out if a mod is loaded?
I am looking for something like:
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 (mod_loaded("obsidian")){
minetest.register_craft(...)
}