Rain Collector Barrel: Difference between revisions
mNo edit summary |
m (Automated Formatting) |
||
(76 intermediate revisions by 32 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Tiles|Plumbing tiles}} | ||
{{ | {{Page version|41.78.16}} | ||
{{Infobox tile | |||
|name=Rain Collector Barrel | |||
|model=RainCollectorBarrel1_Carpentry.gif | |||
|icon=RainCollectorBarrel1_Carpentry.gif | |||
|icon_name=Rain Collector Barrel | |||
|model2=RainCollectorBarrel2_Carpentry.gif | |||
|icon2=RainCollectorBarrel2_Carpentry.gif | |||
|icon_name2=Rain Collector Barrel | |||
|category=Furniture | |||
|weight=7.5 | |||
|size=1 | |||
<!--Properties--> | |||
|type=Water source | |||
|function=Store/Collect [[water]] | |||
|liquid_capacity=160 | |||
|liquid_capacity_text=(level 1) | |||
|liquid_capacity2=400 | |||
|liquid_capacity_text2=(level 2) | |||
|contents=[[File:WaterDrop.png|link=Water]] [[Water]] | |||
<!--Build--> | |||
|build_skill=[[Carpentry]] | |||
|build_level=4–7 | |||
|build_tool_tag=Hammer | |||
|ingredients=<small>4 × [[File:Plank.png|20px|link=Plank]] [[Plank]]<br>4 × [[File:Nails.png|20px|link=Nails]] [[Nails]]<br>4 × [[File:Garbagebag.png|20px|link=Garbage Bag]] [[Garbage Bag]]</small> | |||
<!--Move--> | |||
|move_skill=[[Carpentry]] | |||
|move_level=0 | |||
|move_tool_tag=Hammer | |||
<!--Disassemble--> | |||
|disassemble_skill=[[Carpentry]] | |||
|disassemble_level=0 | |||
|disassemble_tool_tag=Hammer | |||
|disassemble_tool_tag2=Saw | |||
<!--Technical details--> | |||
|item_id=Movables.{TileID} | |||
|tile_id=carpentry_02_54 | |||
|tile_id2=carpentry_02_54 | |||
}} | |||
{{Quote|text=Stockpile supplies before the water shut-off.|author=In-game description}} | |||
A '''rain collector barrel''' is a [[crafting|craftable]] [[water]] [[Containers|container]]. | |||
==Usage== | |||
Rain collector barrels are used to collect rainwater, and take up one [[tile]] space. When it is raining, they will collect the rain as tainted water that is unsafe to drink until boiled in a [[Heat Source|heat source]], although it can be safely used to [[Farming|water plants]], and wash clothing or yourself without needing purification. It may also safely store drinking water if kept indoors. They are an alternative to the [[well]] or a [[Water|body of water]], such as a river or lake, in gathering water after the waterworks shut down. A rain collector barrel can supply water to a [[Plumbing|plumbed]] tile, such as a sink. Water from plumbed sources does not need to be purified before drinking. | |||
The smaller collector requires level four [[carpentry]] to build, and stores 160 units of water, while the bigger collector requires level seven [[carpentry]], and stores 400 units of water. There is also a [[metal drum]] barrel which can currently be found at the camp site around [[Louisville]] which holds 800 units. It is not (yet) possible to craft the Metal Drum without installing mods. | |||
(Note: Most buildings without roof access do not have roofs which are solid, meaning the player will fall through unless a [[Wood Floor|wood floor]] has been constructed underneath. It is advised that players use caution when constructing roof access to place water collectors. It is possible to check tiles using the “Walk To” function – the indicator is green where it’s solid, but red where the player will fall through.) | |||
==Capacity== | |||
{| class="wikitable theme-red sortable" style="text-align:center;" | |||
|- | |||
! Sprite | |||
! Water units | |||
! Water bottles | |||
|- | |||
| [[File:RainCollectorBarrel1_Carpentry.gif{{!}}64px|Small Rain Collector Barrel]] | |||
| 160 | |||
| 8 | |||
|- | |||
| [[File:RainCollectorBarrel2_Carpentry.gif{{!}}64px|Large Rain Collector Barrel]] | |||
| 400 | |||
| 20 | |||
|} | |||
{{ | ==Crafting== | ||
| | ===Carpentry=== | ||
| | {{Main|Carpentry}} | ||
{{Crafting/sandbox2 | |||
|rain_collector_barrel_small | |||
|rain_collector_barrel_large | |||
}} | }} | ||
== | ===Trivia=== | ||
{| | *The quantity of liquid inside of these cannot be directly edited in admin mode on a multiplayer server. | ||
|- | |||
==Code== | |||
{{CodeBox| | |||
{{CodeSnip | |||
{{ | | lang = java | ||
| line = true | |||
| start = 0 | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
local barrelOption = subMenu:addOption(getText("ContextMenu_Rain_Collector_Barrel"), worldobjects, ISBuildMenu.onCreateBarrel, player, "carpentry_02_54", RainCollectorBarrel.smallWaterMax); | |||
local tooltip = ISBuildMenu.canBuild(4,4,0,0,0,4,barrelOption, player); | |||
-- we add that we need 4 garbage bag too | |||
local garbagebag = ISBuildMenu.countMaterial(player, "Base.Garbagebag"); | |||
if garbagebag < 4 then | |||
tooltip.description = tooltip.description .. ISBuildMenu.bhs .. getItemNameFromFullType("Base.Garbagebag") .. " " .. garbagebag .. "/4 "; | |||
if not ISBuildMenu.cheat then | |||
barrelOption.onSelect = nil; | |||
barrelOption.notAvailable = true; | |||
end | |||
else | |||
tooltip.description = tooltip.description .. ISBuildMenu.ghs .. getItemNameFromFullType("Base.Garbagebag") .. " " .. garbagebag .. "/4 "; | |||
end | |||
tooltip:setName(getText("ContextMenu_Rain_Collector_Barrel")); | |||
tooltip.description = getText("Tooltip_craft_rainBarrelDesc") .. tooltip.description; | |||
tooltip:setTexture("carpentry_02_54"); | |||
ISBuildMenu.requireHammer(barrelOption) | |||
}} | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 0 | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
local barrel2Option = subMenu:addOption(getText("ContextMenu_Rain_Collector_Barrel"), worldobjects, ISBuildMenu.onCreateBarrel, player, "carpentry_02_52", RainCollectorBarrel.largeWaterMax); | |||
local tooltip = ISBuildMenu.canBuild(4,4,0,0,0,7,barrel2Option, player); | |||
-- we add that we need 4 garbage bag too | |||
if garbagebag < 4 then -- garbagebag declared further up, no need to redeclare it here | |||
tooltip.description = tooltip.description .. ISBuildMenu.bhs .. getItemNameFromFullType("Base.Garbagebag") .. " " .. garbagebag .. "/4 "; | |||
if not ISBuildMenu.cheat then | |||
barrel2Option.onSelect = nil; | |||
barrel2Option.notAvailable = true; | |||
end | |||
else | |||
tooltip.description = tooltip.description .. ISBuildMenu.ghs .. getItemNameFromFullType("Base.Garbagebag") .. " " .. garbagebag .. "/4 "; | |||
end | |||
tooltip:setName(getText("ContextMenu_Rain_Collector_Barrel")); | |||
tooltip.description = getText("Tooltip_craft_rainBarrelDesc") .. tooltip.description; | |||
tooltip:setTexture("carpentry_02_52"); | |||
ISBuildMenu.requireHammer(barrel2Option) | |||
}} | |||
}} | |||
==See also== | |||
*[[Metal Drum]] | |||
*[[Carpentry]] | |||
{{Navbox construction|carpentry}} | |||
[[Category:Construction]] | |||
[[Category:Carpentry]] | |||
[[Category:Water sources]] | |||
[[Category:Spiffo's Construction Crew (Project)]] | |||
[[Category:Seat Yourself Furniture (Project)]] |
Latest revision as of 11:27, 14 April 2024
A rain collector barrel is a craftable water container.
Usage
Rain collector barrels are used to collect rainwater, and take up one tile space. When it is raining, they will collect the rain as tainted water that is unsafe to drink until boiled in a heat source, although it can be safely used to water plants, and wash clothing or yourself without needing purification. It may also safely store drinking water if kept indoors. They are an alternative to the well or a body of water, such as a river or lake, in gathering water after the waterworks shut down. A rain collector barrel can supply water to a plumbed tile, such as a sink. Water from plumbed sources does not need to be purified before drinking.
The smaller collector requires level four carpentry to build, and stores 160 units of water, while the bigger collector requires level seven carpentry, and stores 400 units of water. There is also a metal drum barrel which can currently be found at the camp site around Louisville which holds 800 units. It is not (yet) possible to craft the Metal Drum without installing mods.
(Note: Most buildings without roof access do not have roofs which are solid, meaning the player will fall through unless a wood floor has been constructed underneath. It is advised that players use caution when constructing roof access to place water collectors. It is possible to check tiles using the “Walk To” function – the indicator is green where it’s solid, but red where the player will fall through.)
Capacity
Sprite | Water units | Water bottles |
---|---|---|
160 | 8 | |
400 | 20 |
Crafting
Carpentry
- Main article: Carpentry
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Rain Collector Barrel |
Plank ×4 Nails ×4 Garbage Bag ×4 |
Hammer (tag) |
Carpentry 4 | none | 1.25 Carpentry |
Rain Collector Barrel |
Plank ×4 Nails ×4 Garbage Bag ×4 |
Hammer (tag) |
Carpentry 7 | none | 1.25 Carpentry |
Trivia
- The quantity of liquid inside of these cannot be directly edited in admin mode on a multiplayer server.
Code
local barrelOption = subMenu:addOption(getText("ContextMenu_Rain_Collector_Barrel"), worldobjects, ISBuildMenu.onCreateBarrel, player, "carpentry_02_54", RainCollectorBarrel.smallWaterMax);
local tooltip = ISBuildMenu.canBuild(4,4,0,0,0,4,barrelOption, player);
-- we add that we need 4 garbage bag too
local garbagebag = ISBuildMenu.countMaterial(player, "Base.Garbagebag");
if garbagebag < 4 then
tooltip.description = tooltip.description .. ISBuildMenu.bhs .. getItemNameFromFullType("Base.Garbagebag") .. " " .. garbagebag .. "/4 ";
if not ISBuildMenu.cheat then
barrelOption.onSelect = nil;
barrelOption.notAvailable = true;
end
else
tooltip.description = tooltip.description .. ISBuildMenu.ghs .. getItemNameFromFullType("Base.Garbagebag") .. " " .. garbagebag .. "/4 ";
end
tooltip:setName(getText("ContextMenu_Rain_Collector_Barrel"));
tooltip.description = getText("Tooltip_craft_rainBarrelDesc") .. tooltip.description;
tooltip:setTexture("carpentry_02_54");
ISBuildMenu.requireHammer(barrelOption)
local barrel2Option = subMenu:addOption(getText("ContextMenu_Rain_Collector_Barrel"), worldobjects, ISBuildMenu.onCreateBarrel, player, "carpentry_02_52", RainCollectorBarrel.largeWaterMax);
local tooltip = ISBuildMenu.canBuild(4,4,0,0,0,7,barrel2Option, player);
-- we add that we need 4 garbage bag too
if garbagebag < 4 then -- garbagebag declared further up, no need to redeclare it here
tooltip.description = tooltip.description .. ISBuildMenu.bhs .. getItemNameFromFullType("Base.Garbagebag") .. " " .. garbagebag .. "/4 ";
if not ISBuildMenu.cheat then
barrel2Option.onSelect = nil;
barrel2Option.notAvailable = true;
end
else
tooltip.description = tooltip.description .. ISBuildMenu.ghs .. getItemNameFromFullType("Base.Garbagebag") .. " " .. garbagebag .. "/4 ";
end
tooltip:setName(getText("ContextMenu_Rain_Collector_Barrel"));
tooltip.description = getText("Tooltip_craft_rainBarrelDesc") .. tooltip.description;
tooltip:setTexture("carpentry_02_52");
ISBuildMenu.requireHammer(barrel2Option)