Lamp on Pillar: Difference between revisions

From PZwiki
m (Fix)
m (Automated capitalisation)
Line 1: Line 1:
{{Languages}}
{{Languages}}
{{header/sandbox2|Project Zomboid|Tiles|Lighting tiles}}
{{Header/sandbox2|Project Zomboid|Tiles|Lighting tiles}}
{{page version|41.78.16}}
{{Page version|41.78.16}}
{{Infobox tile
{{Infobox tile
|name = Lamp on Pillar
|name = Lamp on Pillar

Revision as of 00:37, 25 February 2024

Template:Header/sandbox2

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Lamp on Pillar
LamponPillar Carpentry.png
[[File:{{{icon2}}}|Lamp on Pillar|]]
[[File:{{{icon3}}}|Lamp on Pillar|]]
[[File:{{{icon4}}}|Lamp on Pillar|]]
[[File:{{{icon5}}}|Lamp on Pillar|]]
General
Category
Furniture
EncumbranceMoodle Icon HeavyLoad.png
2
Size
1 tile
Function
Light source
Build
Skill (level)
Tool(s)
Ingredients
2 × Plank.png Plank
4 × Nails.png Nails
1 × Flashlight.png Flashlight
1 × Rope.png Rope
Move
Skill (level)
Tool(s)
Disassemble
Skill (level)
Tool(s)
Technical
Item ID(s)
Base.Movable

Lamp on pillar is a craftable light source.

Usage

The lamp on pillar is used as a light source, not requiring a power source. light an area so long as the flashlight has power. It can be used for marking areas in the dark or more for cosmetic usage ingame for bases.

The lamp on pillar requires a battery as a fuel source. A battery can be inserted or removed via the contextual menu after right-clicking the lamp on pillar and selecting "insert fuel" or "remove battery". The battery is slowly drained while the lamp on pillar is turned on. Turning on and off can be selected via the contextual menu.

The lamp on pillar is most useful after the electricity has shutoff, as it is not powered by the electrical grid. However, this is only useful so long as the Player has a supply of batteries, making it very situational, considering other lights can be powered by a generator.

Crafting

Crafting requires a carpentry skill of 4.

Like other 'buildables', the player must have a hammer in their main inventory, right-click in the world, then select "Carpentry" in the contextual menu.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4
LamponPillar Carpentry.png
Lamp on Pillar
1.25 Carpentry Carpentry 4 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x2
(consumed)
Nails.png
Nails x4
(consumed)
Rope.png
Rope x1
(consumed)

Gallery

Code

From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)

ISBuildMenu.onPillarLamp = function(worldobjects, square, sprite, player)
-- sprite, northSprite
    local lamp = ISLightSource:new(sprite.sprite, sprite.northSprite, getSpecificPlayer(player));
    lamp.offsetX = 5;
    lamp.offsetY = 5;
    lamp.modData["need:Base.Plank"] = "2";
    lamp.modData["need:Base.Rope"] = "1";
    lamp.modData["need:Base.Nails"] = "4";
    lamp.modData["xp:Woodwork"] = 5;
--    lamp.modData["need:Base.Torch"] = "1";
    lamp:setEastSprite(sprite.eastSprite);
    lamp:setSouthSprite(sprite.southSprite);
    lamp.fuel = "Base.Battery";
    lamp.baseItem = "Base.Torch";
    lamp.radius = 10;
    lamp.player = player
    getCell():setDrag(lamp, player);
end

See also