Module:Iteminfo/doc

This module is used to obtain some base statistics of each item.

The code is synchronized with version of Terraria.

Usage
Get all stats at a time: or

item id. 1 to 3929, and please note there are also some deprecated IDs in the range (2772 to 2775, 2777 to 2780, 2782 to 2785, 2881, 3273, 3340 to 3346, 3462 to 3465, 3750, 3847 to 3851, 3861, 3862).
 * id

The prefix for the output variable. Default is. For example, the default variable name for value is. If you used, the variable name would be. When you use this method, it sets a number of DPL variables, then you can retrieve them by using, for instance. This is because retrieve from dplvar is much faster then lua script.
 * (optional) prefix

Get single stat: or

item id. 1 to 3929, and please note there are also some deprecated IDs in the range (2772 to 2775, 2777 to 2780, 2782 to 2785, 2881, 3273, 3340 to 3346, 3462 to 3465, 3750, 3847 to 3851, 3861, 3862).
 * id

Stat name. See the table below.
 * (optional) stat

Use getItemInfo for easily retrieving these variables and using them in articles.

If you are not sure if the ID you specified is valid, please check, it will be the ID when it's valid, and blank when the ID is invalid.

All return fields are listed below. Please note not all of them are used, see note info of each row. And please also refer to these tModLoader and tConfig documentations.

Note: You can get the item name from the Item ID by using ItemNameFromId.