Charcoal: Difference between revisions

From PZwiki
m (Checked content and updated version to 40.43)
(Update distribution file)
 
(37 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{languages|Charcoal}}
{{Header|Project Zomboid|Items|Materials}}
{{header|The Game World|Items|Tools|type=Tool|version=Version 40|incver=43}}{{Infobox drainable
{{Page version|41.78.16}}
|display_name=Charcoal
{{Infobox item
|name_colour=Tool
|name=Charcoal
|name_text_colour=Tool
|model=Charcoal_Model.png
|image=TZ_CharCoal_120px.png
|icon=TZ_CharCoal.png
|icon_name=Charcoal
|category=Material
|weight=8
|weight=8
|primary_use=[[Heat source|Fuel]]
|primary_use=[[Fuel]]
|max_units=10
|max_units=10
|contents=Charcoal
|contents=Charcoal
|class_name=Base.Charcoal
|item_id=Base.Charcoal
}}
}}
'''Charcoal''' is a ''drainable'' item that can be used up to 10 times.
'''Charcoal''' is a ''drainable'' item that can be used up to 10 times.


==Usage==
==Usage==
Charcoal is used as a source of fuel for the [[Heat Source#Charcoal Barbecue|charcoal barbecue]], [[Heat Source#Campfire|campfire]] and [[Heat Source#Antique Oven|antique oven]]. The burn time is 30 minutes of fuel with each use.  
Charcoal is used as a source of [[fuel]] for various [[heat source]]s. 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 [[Heat Source#Oven|ovens]] can be used instead.  
It is recommended to save charcoal until after the electricity has shut off, as until then [[Heat source#Oven|ovens]] can be used instead.


<div><ul>
==Obtaining==
<li style="display: inline-block;"> [[File:BBQ_small.png|frame|link=Heat Source#Grill|<div style="text-align: center">Grill</div>]]</li>
Charcoal can be sustainably gained by putting 5 [[log]]s directly from your inventory into a [[Metal Drum]] and [[Campfire#Lighting|lighting]] it, similarly to a campfire.
<li style="display: inline-block;"> [[File:Antique_Oven.png|frame|link=Heat Source#Antique Oven|<div style="text-align: center">Antique Oven</div>]]</li>
<li style="display: inline-block;"> [[File:Fireplace.gif|frame|link=Heat Source#Fireplace|<div style="text-align: center">Fireplace</div>]]</li>
<li style="display: inline-block;"> [[File:Campfire.png|frame|link=Heat Source#Campfire|<div style="text-align: center">Campfire</div>]]</li>
</ul></div>


==Item distribution==
==Distribution==
Charcoal can commonly be found in [[Containers#Wooden Crate|wooden crates]], which are most common in storage areas.
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Charcoal|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Charcoal distribution
        <span class="mw-customtoggle-togglebox-Charcoal" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Charcoal">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | all
    | {{ll|crate}}
    | 0.44%
    |-
    | barbecuestore
    | {{ll|shelves}}
    | 23.28%
    |-
    | barbecuestore
    | {{ll|shelves}}
    | 41.14%
    |-
    | barbecuestore
    | {{ll|shelves}}
    | 76.55%
    |-
    | garagestorage
    | {{ll|crate}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Charcoal" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Charcoal|41.78.16-->


==Code==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=40|incver=43}}
| {{CodeSnip
<nowiki>
  | lang = java
item Charcoal
  | line = true
Weight = 8,
  | start = 1119
Type = Drainable,
  | source = items.txt
UseWhileEquipped = FALSE,
  | retrieved = true
UseDelta = 0.1,
  | version = 41.78.16
DisplayName = Charcoal,
  | code =
Icon = Charcoal,
item Charcoal
</nowiki>
{
    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==
==See also==
*[[Heat source]]
*[[Heat source]]
*[[Items#Fuel|Other fuel items]]
*[[Fuel]]


{{Navbox/Tools}}
{{Navbox items|equipment}}

Latest revision as of 12:20, 30 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Charcoal
Charcoal Model.png
General
Category
Material
Encumbrance
Moodle Icon HeavyLoad.png
8
Function
Properties
Contents
Charcoal
Capacity
10 units
Technical
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 various heat sources. 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.

Obtaining

Charcoal can be sustainably gained by putting 5 logs directly from your inventory into a Metal Drum and lighting it, similarly to a campfire.

Distribution

The loot distributions can be found in the table(s) below.

Charcoal distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
all crate 0.44%
barbecuestore shelves 23.28%
barbecuestore shelves 41.14%
barbecuestore shelves 76.55%
garagestorage crate 10.78%

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