Empty Tin Can: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: CodeBox update)
Line 21: Line 21:
Empty tin cans are commonly found in [[Tiles#Bins|garbage bins]] or [[Tiles#Crates|crates]].
Empty tin cans are commonly found in [[Tiles#Bins|garbage bins]] or [[Tiles#Crates|crates]].


==Code==
{{CodeBox
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
| {{CodeSnip
{{Retrieved|version=41|incver=68}}
  | lang = java
<pre>
  | line = false
item TinCanEmpty
  | source = newitems.txt
DisplayCategory = Material,
  | retrieved = true
Weight = 0.2,
  | version = 41
Type = Normal,
  | incver = 68
DisplayName = Empty Tin Can,
  | code =
Icon = TinCanEmpty,
item TinCanEmpty
MetalValue = 20,
{
StaticModel = CanOpen,
  DisplayCategory     = Material,
WorldStaticModel = TinCanEmpty_Ground,
  Weight             = 0.2,
</pre>
  Type               = Normal,
  DisplayName         = Empty Tin Can,
  Icon               = TinCanEmpty,
  MetalValue         = 20,
  StaticModel         = CanOpen,
  WorldStaticModel   = TinCanEmpty_Ground,
}
  }}
}}


==See also==
==See also==
*[[Empty Pop Can]]
*[[Empty Pop Can]]

Revision as of 09:12, 31 January 2024

Project ZomboidItemsEmpty Tin Can
Empty Tin Can
TinnedCanEmpty Model.png.png
General
Category
Material
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
None
Properties
Material
Metal
Metal quantity
20
Technical
Item ID
Base.TinCanEmpty

An empty tin can are currently a useless item, and often considered as junk.

Usage

Empty tin cans have no use, being added purely for the purpose of clutter, creating more realism for the player. It can be obtained through fully eating a canned food item. The weight of the can is not dependent on the type of canned food it came from.

Distribution

Empty tin cans are commonly found in garbage bins or crates.

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.68
item TinCanEmpty
{
  DisplayCategory     = Material,
  Weight              = 0.2,
  Type                = Normal,
  DisplayName         = Empty Tin Can,
  Icon                = TinCanEmpty,
  MetalValue          = 20,
  StaticModel         = CanOpen,
  WorldStaticModel    = TinCanEmpty_Ground,
}

See also