Lamp on Pillar: Difference between revisions

From PZwiki
(PZ Updater automated execution(task: deploy ReLookup, eid: 481c8e3195b9a92dec7dc3c6b9f7c2ae))
m (Cleanup)
Line 1: Line 1:
{{languages|Lamp on Pillar}}
{{Languages}}{{Header|The Game World|Items|Construction|Carpentry|version=Version 36|incver=40}}
{{header|The Game World|Items|Construction|Carpentry|version=Version 36|incver=40}}
 
{| style="float:right; border:1px solid FFFFFF;margin:.46em 0 0 .2em"
{| style="float:right; border:1px solid FFFFFF;margin:.46em 0 0 .2em"
|- style="font-size:100%"
|- style="font-size:100%"
Line 12: Line 10:
Should the torch no longer function, the [[battery]] can be removed by right clicking on the pillar and remove the battery then place a new one in.  
Should the torch no longer function, the [[battery]] can be removed by right clicking on the pillar and remove the battery then place a new one in.  


== Crafting ==
==Crafting==
{{Crafting header|ing=4}}<!-- Automatically generated by ReLookup. Subject RecipeLookup: 1017 -->
{{Crafting header|ing=4}}
{{Crafting/core|ing=4
{{Crafting carpentry|402|ing=4}}
| product_image = [[File:Lamponpillar.png]] | product_name = [[Lamp on Pillar]] |q5=x1 | product_quantity =
| xp = <!-- Not present in the old template. Please fill in manually. -->
| sl = [[Carpentry]] 5
| req =
| f1 = [[File:Rope.png|link=Rope|Rope]] | i1 = [[Rope]] | q1 = x1 | tag1 = (consumed)
| f2 = [[File:Flashlight.png|link=Flashlight|Flashlight]] | i2 = [[Flashlight]] | q2 = x1 | tag2 = (consumed)
| f3 = [[File:Plank.png|link=Plank|Plank]] | i3 = [[Plank]] | q3 = x2 | tag3 = (consumed)
| f4 = [[File:Nails.png|link=Nails|Nails]] | i4 = [[Nails]] | q4 =  | tag4 = (consumed)
}}
|}
|}


 
==Code==
== Code ==
'''''From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)'''''
'''''From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)'''''
<nowiki>
<pre>
ISBuildMenu.onPillarLamp = function(worldobjects, square, sprite, player)
ISBuildMenu.onPillarLamp = function(worldobjects, square, sprite, player)
-- sprite, northSprite
-- sprite, northSprite
Line 48: Line 36:
     getCell():setDrag(lamp, player);
     getCell():setDrag(lamp, player);
end
end
</nowiki>
</pre>


==See also==
==See also==
*[[Carpentry Guide]]
*[[Carpentry]]
 
{{Navbox/Construction}}
{{Navbox/Construction}}
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Spiffo's Construction Crew (Project)]]

Revision as of 01:44, 28 February 2023

Lamp on Pillar Article Img2.png
Ingame image of Lamp on Pillar in Version 36.40.

A lamp on pillar is a light source that can be constructed at Carpentry level 5, that will continue to light a area as long as the torch has power. It can be used for marking areas in the dark or more for cosmetic usage ingame for bases.

Should the torch no longer function, the battery can be removed by right clicking on the pillar and remove the battery then place a new one in.

Crafting

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)

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

Template:Navbox/Construction