Lamp: Difference between revisions

From PZwiki
m (Automatic formatting)
m (Automated CodeBox update)
Line 105: Line 105:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 1986
   | start = 4378
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
    item Mov_Lamp1
item Mov_Lamp1
     {
     {
         DisplayCategory = Furniture,
         DisplayCategory = Furniture,
Line 118: Line 118:
         DisplayName = Moveable,
         DisplayName = Moveable,
         WorldObjectSprite = lighting_indoor_01_8,
         WorldObjectSprite = lighting_indoor_01_8,
     }
     }  
  }}
}}


[[File:Lamp Black.png|32px]] ''Black Lamp''<br>
[[File:Lamp Black.png|32px]] ''Black Lamp''<br>
Line 125: Line 125:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 1986
   | start = 4388
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
    item Mov_Lamp2
item Mov_Lamp2
     {
     {
         DisplayCategory = Furniture,
         DisplayCategory = Furniture,
Line 138: Line 138:
         DisplayName = Moveable,
         DisplayName = Moveable,
         WorldObjectSprite = lighting_indoor_01_9,
         WorldObjectSprite = lighting_indoor_01_9,
     }
     }  
  }}
}}


[[File:Lamp Red.png|32px]] ''Red Lamp''<br>
[[File:Lamp Red.png|32px]] ''Red Lamp''<br>
Line 145: Line 145:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 1986
   | start = 4398
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
    item Mov_Lamp3
item Mov_Lamp3
     {
     {
         DisplayCategory = Furniture,
         DisplayCategory = Furniture,
Line 158: Line 158:
         DisplayName = Moveable,
         DisplayName = Moveable,
         WorldObjectSprite = lighting_indoor_01_10,
         WorldObjectSprite = lighting_indoor_01_10,
     }
     }  
  }}
}}


[[File:Lamp Grey.png|32px]] ''Gray Lamp''<br>
[[File:Lamp Grey.png|32px]] ''Gray Lamp''<br>
Line 165: Line 165:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 1986
   | start = 4408
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
    item Mov_Lamp4
item Mov_Lamp4
     {
     {
         DisplayCategory = Furniture,
         DisplayCategory = Furniture,
Line 178: Line 178:
         DisplayName = Moveable,
         DisplayName = Moveable,
         WorldObjectSprite = lighting_indoor_01_11,
         WorldObjectSprite = lighting_indoor_01_11,
     }
     }  
  }}
}}


[[File:Lamp Blue.png|32px]] ''Blue Lamp''<br>
[[File:Lamp Blue.png|32px]] ''Blue Lamp''<br>
Line 185: Line 185:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 1986
   | start = 4418
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
    item Mov_Lamp5
item Mov_Lamp5
     {
     {
         DisplayCategory = Furniture,
         DisplayCategory = Furniture,
Line 198: Line 198:
         DisplayName = Moveable,
         DisplayName = Moveable,
         WorldObjectSprite = lighting_indoor_01_12,
         WorldObjectSprite = lighting_indoor_01_12,
     }
     }  
  }}
}}


[[File:Lamp White.png|32px]] ''White Lamp''<br>
[[File:Lamp White.png|32px]] ''White Lamp''<br>
Line 205: Line 205:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 1986
   | start = 4428
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
    item Mov_Lamp6
item Mov_Lamp6
     {
     {
         DisplayCategory = Furniture,
         DisplayCategory = Furniture,
Line 218: Line 218:
         DisplayName = Moveable,
         DisplayName = Moveable,
         WorldObjectSprite = lighting_indoor_01_13,
         WorldObjectSprite = lighting_indoor_01_13,
     }
     }  
  }}
}}


[[File:Lamp.png|32px]] ''Lamp''{{sup|removed}}<br>
[[File:Lamp.png|32px]] ''Lamp''{{sup|removed}}<br>
Line 230: Line 230:
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
item Lamp
item Lamp
{
{
    DisplayCategory = Household,
    DisplayCategory = Household,
Line 239: Line 239:
         MetalValue = 12,
         MetalValue = 12,
         OBSOLETE = TRUE,
         OBSOLETE = TRUE,
     }
     }  
  }}
}}
}}
}}



Revision as of 10:56, 26 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]
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