Candle: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
m (Automated Formatting)
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Equipment|Light sources}}
{{Header|Project Zomboid|Items|Illumination|version=Version 40|incver=43}}
{{Page version|41.78.16}}
{{Infobox item
{{Infobox item
|display_name=Candle
|name=Candle
|model=Candle Model.png
|model=Candle_Model.png
|model_width=200px
|model_width=200px
|icon=Candle.png
|icon=Candle.png
|icon_name=Candle
|icon_name=Candle
|icon_link=
|icon2=CandleLit.png
|icon2=CandleLit.png
|icon_name2=Lit Candle
|icon_name2=Lit Candle
|icon_link2=
<!--General-->
<!--General-->
|category=Light Source
|category=Light Source
Line 20: Line 18:
<!--Technical-->
<!--Technical-->
|tags=StartFire
|tags=StartFire
|class_name=Base.Candle<br>Base.CandleLit
|item_id=Base.Candle<br>Base.CandleLit
}}
}}
A '''lit candle''' is a drainable illumination item.
A '''lit candle''' is a drainable illumination item.


==Usage==
==Usage==
The '''candle''' itself does not do anything. However, if the candle is lit, it will become a light source for the player. It can also then be used to light a [[campfire]].  
The '''candle''' itself does not do anything. However, if the candle is lit, it will become a light source for the player. It can also then be used to light a [[campfire]].


When equipped, a lit candle projects a ring of light around the player stronger than that of a [[lighter]], but weaker than a [[flashlight]]. It has a limited usable time, which once drained, will be destroyed.  
When equipped, a lit candle projects a ring of light around the player stronger than that of a [[lighter]], but weaker than a [[flashlight]]. It has a limited usable time, which once drained, will be destroyed.


The lit candle can be put out, extinguishing the light source and reverting it to a candle, where it must be relit.
The lit candle can be put out, extinguishing the light source and reverting it to a candle, where it must be relit.


==Crafting==
==Crafting==
{{Crafting header|ing=2}}
{{Crafting/sandbox2
{{Crafting general|004|ing=2}}
|lit_candle
|}
}}


==Distribution==
==Distribution==
Line 40: Line 38:


==Code==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Candle.png]] {{ID|Candle}}<br>
 
{{CodeSnip
''Candle'' [[File:Candle.png]]
  | lang = java
{{Retrieved|version=40|incver=43}}
  | line = true
 
  | start = 728
<pre>
  | source = items.txt
item Candle
  | retrieved = true
Weight = 0.2,
  | version = 41.78.16
Type = Normal,
  | code =
DisplayName = Candle,
item Candle
Icon = Candle,
    {
</pre>
        DisplayCategory = LightSource,
 
        Weight   =   0.2,
''Lit Candle'' [[File:CandleLit.png]]
        Type   =    Drainable,
{{Retrieved|version=40|incver=43}}
        UseDelta    =   0,
<pre>
        DisplayName   =   Candle,
item CandleLit
        Icon   =    Candle,
LightDistance = 3,
        cantBeConsolided = TRUE,
Weight = 0.2,
        StaticModel = Candle,
Type = Drainable,
        WorldStaticModel = CandleGround,
TorchCone = FALSE,
    }
UseDelta = 0.003,
}}
LightStrength = 0.6,
{{CodeSnip
DisplayName = Lit Candle,
  | lang = java
ActivatedItem = TRUE,
  | line = true
Icon = CandleLit,
  | start = 741
cantBeConsolided = TRUE,
  | source = items.txt
</pre>
  | retrieved = true
  | version = 41.78.16
  | code =
item CandleLit
{
    DisplayCategory = LightSource,
LightDistance = 3,
Weight = 0.2,
Type = Drainable,
    UseWhileUnequipped  =  TRUE,
TorchCone = FALSE,
UseDelta = 0.003,
LightStrength = 0.6,
DisplayName = Lit Candle,
ActivatedItem = TRUE,
Icon = CandleLit,
cantBeConsolided = TRUE,
StaticModel = Candle,
WorldStaticModel = CandleGround,
Tags = StartFire,
}
}}
}}


==See also==
==See also==
*[[Lighter]]
*[[Lighter]]
*[[Matches]]


{{Navbox equipment}}
{{Navbox items|survival}}

Revision as of 07:10, 14 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]
Candle
Candle Model.png
Lit Candle
General
Category
Light Source
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Light source
Properties
Capacity
333 units
Light strength
0.6
Technical
Tags
StartFire
Item ID
Base.Candle
Base.CandleLit

A lit candle is a drainable illumination item.

Usage

The candle itself does not do anything. However, if the candle is lit, it will become a light source for the player. It can also then be used to light a campfire.

When equipped, a lit candle projects a ring of light around the player stronger than that of a lighter, but weaker than a flashlight. It has a limited usable time, which once drained, will be destroyed.

The lit candle can be put out, extinguishing the light source and reverting it to a candle, where it must be relit.

Crafting

Product Ingredients Tools Requirements Workstation XP
CandleLit.png
Candle
One of:
Lighter.png Lighter ×1
Matches.png Matches ×1
Each of:
Candle.png Candle ×1
none none none none

Distribution

Candles can be found in wardrobes, counters and gift stores.

Code

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

Candle.png Candle
Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item Candle
    {
        DisplayCategory = LightSource,
        Weight    =    0.2,
        Type    =    Drainable,
        UseDelta    =   0,
        DisplayName    =    Candle,
        Icon    =    Candle,
        cantBeConsolided = TRUE,
        StaticModel = Candle,
        WorldStaticModel = CandleGround,
    }

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item CandleLit
	{
	    DisplayCategory = LightSource,
		LightDistance	=	3,
		Weight	=	0.2,
		Type	=	Drainable,
	    UseWhileUnequipped  =   TRUE,
		TorchCone	=	FALSE,
		UseDelta	=	0.003,
		LightStrength	=	0.6,
		DisplayName	=	Lit Candle,
		ActivatedItem	=	TRUE,
		Icon	=	CandleLit,
		cantBeConsolided = TRUE,
		StaticModel = Candle,
		WorldStaticModel = CandleGround,
		Tags = StartFire,
	}

See also