mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Update API documentation to match updated game name
This commit is contained in:
parent
aabd80d54b
commit
b37e9818b7
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue