Update Auxiliary.md

This commit is contained in:
ch-yx authored and gnembon committed 2022-08-28 18:59:11 +02:00
1 parent 3522f39f35
commit b456d4be50
1 file changed
+3 -3
+3 -3
View File
@@ -268,11 +268,11 @@ Example usages:
// not a problem in apps
</pre>
### `item_display_name(item )`
### `item_display_name(item)`
Returns the name of the item as a Text Value. `item` should be a list of `[item_name, count, nbt]`, or just an item name.
Please note that it is a translated value, and the result of it converting to a string will using your servers language, but when you use print() to broadcast it to players, it will use each player's own language.
Please note that it is a translated value. treating it like a string (eg.slicing, breaking, changing its case) will turn it back into a normal string without translatable properties. just like a colorful formatted text loose its color. And the result of it converting to a string will use en-us (in a server) or your single player's language, but when you use print() or others functions that accept a text value to broadcast it to players, it will use each player's own language.
If the item is renamed, it will also be reflected in the results.