Lamp

From PZwiki
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Lamp
Lamp Striped.png
Lamp Black.png
Lamp Red.png
Lamp Grey.png
Lamp Blue.png
General
Category
Furniture
EncumbranceMoodle Icon HeavyLoad.png
2
Size
1 tile
Properties
Energy source
Technical
Item ID(s)
Base.Mov_Lamp1
Base.Mov_Lamp2
Base.Mov_Lamp3
Base.Mov_Lamp4
Base.Mov_Lamp5
Base.Mov_Lamp6

[See all]
Tile ID(s)
lighting_indoor_01_8 lighting_indoor_01_9 lighting_indoor_01_10 lighting_indoor_01_11 lighting_indoor_01_12 lighting_indoor_01_13
[See all]

A lamp is a light source tile.

Usage

A lamp provides a source of light when placed. It can be turned on and off by left-clicking the tile.

Distribution

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

Containers
Building/Room Container Rolls Chance
departmentstorage metal_shelves 4 6

A lamp can be found in various places, including bedrooms, or on shelves in electronics stores.

Variants

Icon Name Item ID Tile ID
Lamp Striped.png Striped Lamp Base.Mov_Lamp1 lighting_indoor_01_8
Lamp Black.png Black Lamp Base.Mov_Lamp2 lighting_indoor_01_9
Lamp Red.png Red Lamp Base.Mov_Lamp3 lighting_indoor_01_10
Lamp Grey.png Gray Lamp Base.Mov_Lamp4 lighting_indoor_01_11
Lamp Blue.png Blue Lamp Base.Mov_Lamp5 lighting_indoor_01_12
Lamp White.png White Lamp Base.Mov_Lamp6 lighting_indoor_01_13

Trivia

  • The lamp was previously only an item and could not be placed. It was removed in build 41 and replaced by the new moveables functionality. It had the following item ID: Base.Lamp.

Code

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

Important note: the item does not get all the values from this location. These values are overridden by the tile properties. The item ID will even be replaced by the tile ID as soon as it is placed, and is only used for item distribution.

Lamp Striped.png Striped Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp1
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_8,
    }

Lamp Black.png Black Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp2
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_9,
    }

Lamp Red.png Red Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp3
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_10,
    }

Lamp Grey.png Gray Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp4
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_11,
    }

Lamp Blue.png Blue Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp5
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_12,
    }

Lamp White.png White Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp6
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_13,
    }

Lamp.png LampRemoved
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Lamp
	{
	    DisplayCategory = Household,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	Lamp,
        Icon	=	Lamp,
        MetalValue = 12,
        OBSOLETE = TRUE,
    }

See also