mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-02-17 21:23:44 +01:00
Update API documentation to match updated game name
This commit is contained in:
@ -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")
|
||||||
|
Reference in New Issue
Block a user