Module:Iteminfo/doc

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

The code is synchronized with version of Terraria.

Usage
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.
 * (optional) prefix

When you use this module, it sets a number of DPL variables you can retrieve them by using, for instance. 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.