Charcoal: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: CodeBox update)
Line 33: Line 33:


==Code==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=78.16}}
| {{CodeSnip
<pre>
  | lang = java
item Charcoal
  | line = false
{
  | source = items.txt
    DisplayCategory = Material,
  | retrieved = true
Weight = 8,
  | version = 41
Type = Drainable,
  | incver = 78.16
UseWhileEquipped = FALSE,
  | code =
UseDelta = 0.1,
item Charcoal
DisplayName = Charcoal,
{
Icon = TZ_CharCoal,
    DisplayCategory     = Material,
WeightEmpty = 0.02,
    Weight             = 8,
WorldStaticModel = Charcoal_Ground,
    Type               = Drainable,
ConsolidateOption = ContextMenu_Merge,
    UseWhileEquipped   = FALSE,
}
    UseDelta           = 0.1,
</pre>
    DisplayName         = Charcoal,
    Icon               = TZ_CharCoal,
    WeightEmpty         = 0.02,
    WorldStaticModel   = Charcoal_Ground,
    ConsolidateOption   = ContextMenu_Merge,
}
  }}
}}


==See also==
==See also==

Revision as of 10:20, 31 January 2024

Charcoal
Charcoal
Charcoal
General
Category Material
Encumbrance
Heavy Load
8
Function Fuel
Capacity 10 units
Contents Charcoal
Technical details
item ID Base.Charcoal

Charcoal is a drainable item that can be used up to 10 times.

Usage

Charcoal is used as a source of fuel for the charcoal barbecue and antique oven. The burn time is 30 minutes of fuel with each use.

It is recommended to save charcoal until after the electricity has shut off, as until then ovens can be used instead.

  • Grill
  • Antique Oven
  • Fireplace

Distribution

Charcoal can commonly be found in wooden crates, which are most common in storage areas.

It can also be made from 5 Logs with help of the metal drum.

Code

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

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item Charcoal
{
    DisplayCategory     = Material,
    Weight              = 8,
    Type                = Drainable,
    UseWhileEquipped    = FALSE,
    UseDelta            = 0.1,
    DisplayName         = Charcoal,
    Icon                = TZ_CharCoal,
    WeightEmpty         = 0.02,
    WorldStaticModel    = Charcoal_Ground,
    ConsolidateOption   = ContextMenu_Merge,
}

See also