Candle: Difference between revisions

From PZwiki
m (Automated class_name fix)
(Codebox, see also, Version bump)
Line 1: Line 1:
{{Header|Project Zomboid|Items|Equipment|Light sources}}
{{Header|Project Zomboid|Items|Equipment|Light sources}}
{{Page version|40.43}}
{{Page version|41.78.16}}
{{Infobox item
{{Infobox item
|name =Candle
|name =Candle
Line 44: Line 44:
{{CodeSnip
{{CodeSnip
   | lang = java
   | lang = java
   | line = false
   | line = true
  | start = 728
   | source = items.txt
   | source = items.txt
   | retrieved = true
   | retrieved = true
   | version = 40.43
   | version = 41.78.16
   | code =
   | code =
    item Candle
item Candle
     {
     {
         Weight     = 0.2,
        DisplayCategory = LightSource,
         Type       = Normal,
         Weight   =   0.2,
         DisplayName = Candle,
         Type   =   Drainable,
         Icon       = Candle,
        UseDelta    =  0,
         DisplayName   =   Candle,
         Icon   =    Candle,
        cantBeConsolided = TRUE,
        StaticModel = Candle,
        WorldStaticModel = CandleGround,
     }
     }
}}
}}
{{CodeSnip
{{CodeSnip
   | lang = java
   | lang = java
   | line = false
   | line = true
  | start = 741
   | source = items.txt
   | source = items.txt
   | retrieved = true
   | retrieved = true
   | version = 40.43
   | version = 41.78.16
   | code =
   | code =
    item CandleLit
item CandleLit
    {
{
        LightDistance       = 3,
    DisplayCategory = LightSource,
        Weight             = 0.2,
LightDistance = 3,
        Type               = Drainable,
Weight = 0.2,
        TorchCone           = FALSE,
Type = Drainable,
        UseDelta           = 0.003,
    UseWhileUnequipped  =  TRUE,
        LightStrength       = 0.6,
TorchCone = FALSE,
        DisplayName         = Lit Candle,
UseDelta = 0.003,
        ActivatedItem       = TRUE,
LightStrength = 0.6,
        Icon               = CandleLit,
DisplayName = Lit Candle,
        cantBeConsolided   = TRUE,
ActivatedItem = TRUE,
    }
Icon = CandleLit,
cantBeConsolided = TRUE,
StaticModel = Candle,
WorldStaticModel = CandleGround,
Tags = StartFire,
}
}}
}}
}}
}}
Line 82: Line 94:
==See also==
==See also==
*[[Lighter]]
*[[Lighter]]
*[[Matches]]


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

Revision as of 08:09, 19 March 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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Lit Candle
Lit Candle
0 XP none Candle.png
Candle
(consumed)

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