minetest.get_name_from_content_id

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.get_name_from_content_id(content_id)

Description

Returns a string: the name of the content with that content ID

Example

This will print out the name of the node.:

local name = data[p_pos]
print(minetest.get_name_from_content_id(name))

For the meaning of data and p_pos, see vmanip.



This article is missing examples, feel free to add them.




This article is incomplete.


Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox