1
0
Fork 0

Update API documentation to match updated game name

This commit is contained in:
teknomunk 2024-05-02 09:02:13 +00:00
parent aabd80d54b
commit b37e9818b7
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# mcl_item_id # mcl_item_id
Show the item ID of an item in the description. Show the item ID of an item in the description.
With this API, you can register a different name space than "mineclone" for your mod. With this API, you can register a different name space than "voxelibre" for your mod.
## mcl_item_id.set_mod_namespace(modname, namespace) ## mcl_item_id.set_mod_namespace(modname, namespace)
Set a name space for all items in a mod. Set a name space for all items in a mod.
@ -21,4 +21,4 @@ The name of the mod is "mod" which registered an item called "mod:itemname".
* mcl_item_id.set_mod_namespace(minetest.get_current_modname()) will show "mod:itemname" in the description of "mod:itemname" * mcl_item_id.set_mod_namespace(minetest.get_current_modname()) will show "mod:itemname" in the description of "mod:itemname"
* mcl_item_id.get_mod_namespace(minetest.get_current_modname()) will return "mod" * mcl_item_id.get_mod_namespace(minetest.get_current_modname()) will return "mod"
(If no namespace is set by a mod, mcl_item_id.get_mod_namespace(minetest.get_current_modname()) will return "mineclone") (If no namespace is set by a mod, mcl_item_id.get_mod_namespace(minetest.get_current_modname()) will return "voxelibre")