Talk:Items

Max Stack
While I would consider arrows to be a consumable, don't they stack to 250? --KoreRekon 01:18, 9 June 2011 (UTC)

How do we remove X number of items from a stack? Clicking always picks up the entire stack. - Spinfx 01:35, 22 July 2011 (UTC)
 * Right click to remove 1 from a stack, and hold down right mouse button to remove more.--GauHelldragon 04:18, 22 July 2011 (UTC)
 * That sounds so intuitive I don't know what the hell I'd been smoking. Thanks! Gonna add this to the controls page as well. - Spinfx 05:57, 22 July 2011 (UTC)

Item despawning
I'm just chilling in my newly created ocean mob farm that utilises shallow lava moats to kill off unwanted mobs, and of course it reached what I assume the item cap is since some Tattered Cloth and Gel had despawned, silly me for not grabbing it when the Goblin Scouts and Slimes had died. Anyway, I'm just confirming that the article is correct unless item despawning also relies on a timer. --92.6.238.141 20:20, 10 August 2011 (UTC)

Can a source-diver confirm if loose item stacks actually can merge?
I've been using conveyor belts to try and bundle drops into stacks, but I just realized that I don't know if the code actually supports that. Can someone with access to the source code check if items stacks actually do merge on contact, or would they just be a bunch of individual items occupying the same tile? --MentalMouse42 (talk) 14:18, 8 February 2018 (UTC)
 * Yes, loose items do merge into stacks. I can confirm this by experience. If they didn't, the loose items limit would be reached to often and additional items would be lost. From what I gather from the source code, it applies to loose items within a 1.5 tile radius of each other. – ReedemtheD3ad!  ( talk ) 18:58, 8 February 2018 (UTC)
 * Excellent, thanks! --MentalMouse42 (talk) 22:39, 8 February 2018 (UTC)

More tags in item data?
I have in mind that it would be good to add a couple of flag fields to item data, or better yet a general "tag" mechanism. Specifically, I'd like to have "biome" tags according to item affiliations, and "class" tags extended beyond the damage type to include things like "defense" ("armor" as a separate tag is already coded separately, right?), "healing", "immunity", "movement", "buffs", and so on. I'm thinking primarily accessories, but even some armor and weapons could usefully be tagged. So Frost Armor might be tagged "snow [biome], melee, ranged", while an Obsidian Rose would be "accessory, underworld, immunity". What I don't really know is whether the existing infrastructure would support that as a "simple addition", or if it would get out of hand. --MentalMouse42 (talk) 21:06, 19 December 2019 (UTC) Edited --MentalMouse42 (talk) 21:09, 19 December 2019 (UTC)
 * already has a  parameter which is what you want. See its documentation for more details. And for "snow [biome]",you can use multiple tags such as "biome/snow" or "biome/biome-snow" for easier query. If you want   to save any other attributes(some cate, type， etc.) into tags, please tell me, I can modify   to implement it.  Westgrass (talk) 01:51, 20 December 2019 (UTC)
 * Thanks! --MentalMouse42 (talk) 12:27, 20 December 2019 (UTC)
 * So, looking at the template docs, they seem to get their info ultimately from the source code, while I more or less want to annotate that. (I presume the source code doesn't actually provide biome info etc, or it would be there.)  How would I then add an tag to a given item?  By putting its page in a category, or setting up my own data file??  In my comment, the bracketed [biome] was meant to be a comment rather than syntax; how would something like "biome/snow" be useful? --MentalMouse42 (talk) 03:02, 22 December 2019 (UTC)
 * will auto retrieve some tags from source code, and you can manually add others if needed. Just use ,for example, in the   of that item. We can use cargo query to retrieve them later, for example:   will retrieve all items with "yoyos" tag. Multiple tags may make some query easier, for example, if you use , that item will hold both "biome" and "snow" tags, so we can use   to retrieve all items with biome info, and use   to retrieve only snow biome items. This is not the only option, you can also use   to tag them, by doing so we can use   and   to do the same queries.   or   are feasible options too. You can decide which one to use, and the point is to be consistent. --Westgrass (talk) 06:30, 22 December 2019 (UTC)