Items
Items are entities that are among the most basic components of Terraria. The player can interact with most items by using, consuming, or placing them. Items are always in one of two forms: "dropped", i.e. being part of the world, or in an inventory pertaining to a player, NPC vendor, or storage item. Dropped items can usually be picked up by the player to move them into their inventory, and they can usually be dropped out of the inventory again. All dropped items are 16×16 pixels in size.[1]
Most items can be grouped based on certain shared characteristics, e.g. armor items, blocks, or weapons. See Category:Items for the complete categorization.
Obtaining[edit]
Items can be obtained in numerous ways in Terraria. They can be:
- Picked up after an entity has dropped them (e.g. defeated enemies, or mined blocks or furniture).
- Transferred from another inventory (e.g. an NPC vendor's or a Chest's).
- Placed directly in the player's inventory as part of other processes (e.g. crafting or being rewarded by NPCs like the Angler).
Pickup[edit]
When an item is in its "dropped" form, any player making contact with the item will pick it up, automatically placing it in their inventory or Void Bag (if there is sufficient space and no Encumbering Stone is in the inventory). In addition, all players draw ("pull") all items within a certain range towards them in order to make contact with them. This range is referred to as pickup range. It consists of a rectangular area of, by default, 5.25×5.25 tiles, centered on the player (i.e. 2.625 tiles in all directions). Certain effects increase the pickup range for certain items:[2]
| Effect / Equipped item | Affected items | Pickup range increase |
|---|---|---|
| n/a | All items and pickups | 0 total: 2.625 tiles
|
Placement Range Ability |
All items and pickups | +15 tiles total: 17.625 tiles
|
| n/a | +3.125 tiles total: 5.75 tiles
| |
| n/a | +6.25 tiles total: 8.875 tiles
| |
| +21.875 tiles total: 24.5 tiles
| ||
| +18.75 tiles total: 21.375 tiles
| ||
| +15.625 tiles total: 18.25 tiles
| ||
| All items and pickups | +9.375 tiles total: 12 tiles
|
Effects/equipped items in the same row do not stack.
"Pulled" items have an acceleration and maximum speed, hence it is possible that an item is not pulled in completely, e.g. if the player is moving very fast and causes it to be out of pickup range before they could make contact with it.
Stack[edit]
In an inventory, items can be stacked in a single slot to a certain limit. Virtually all items can stack up to 9999, provided they have the same (or no) modifier. The only exceptions are Copper, Silver, and Gold Coins, which cannot be stacked past 100, and Coal, which cannot be stacked at all.
Despawning[edit]
Items that are in the "dropped" state will disappear ("despawn") upon exiting the world.
If there are more than 400 "dropped" items existing on the world, items will also start despawning. In this instance, the items that have remained dropped for the longest amount of time may vanish as new items are dropped into the world.
Gravity[edit]
The majority of items are subject to gravity when in dropped form. The exceptions, which float midair when dropped, are listed below:
Soul of LightInternal Item ID: 520
Soul of NightInternal Item ID: 521
Soul of FlightInternal Item ID: 575
Soul of SightInternal Item ID: 549
Soul of MightInternal Item ID: 548
Soul of FrightInternal Item ID: 547
Damage BoosterInternal Item ID: 3453
Life BoosterInternal Item ID: 3454
Mana BoosterInternal Item ID: 3455
Vortex FragmentInternal Item ID: 3456
Nebula FragmentInternal Item ID: 3457
Solar FragmentInternal Item ID: 3458
Stardust FragmentInternal Item ID: 3459
Yoraiz0r's SpellInternal Item ID: 3580
Yoraiz0r's ScowlInternal Item ID: 3581
ManaCloakStar(no official name)Internal Item ID: 4143
See also[edit]
History[edit]
- Desktop 1.4.5.0: The hitboxes of all dropped items are now 16×16 pixels in size. Previously, items had hitboxes of varying size (see List of item sprite sizes for details).
References[edit]
- ↑ Information taken from the
Desktop 1.4.5.5 source code, method UpdateEntityFields()inTerraria.WorldItem.csand fieldswidthinTerraria.WorldItem.csandheightinTerraria.WorldItem.cs. There may be inaccuracies, as the current Desktop version is 1.4.5.8. - ↑ Information taken from the
Desktop 1.4.5.5 source code, method GetItemGrabRange()inTerraria.Player.cs. There may be inaccuracies, as the current Desktop version is 1.4.5.8.