Rain Collector Barrel

From PZwiki
Project ZomboidTilesPlumbing tiles‎Rain Collector Barrel
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Rain Collector Barrel
RainCollectorBarrel1 Carpentry.gif
RainCollectorBarrel2 Carpentry.gif
[[File:{{{icon3}}}|Rain Collector Barrel|]]
[[File:{{{icon4}}}|Rain Collector Barrel|]]
[[File:{{{icon5}}}|Rain Collector Barrel|]]
General
Category
Furniture
EncumbranceMoodle Icon HeavyLoad.png
7.5
Size
1 tile
Function
Store/Collect water
Properties
Type
Water source
Liquid capacity
160 units (level 1)
400 units (level 2)
Contents
Build
Skill (level)
Carpentry (4–7)
Tool(s)
Ingredients
4 × Plank.png Plank
4 × Nails.png Nails
4 × Garbagebag.png Garbage Bag
Move
Skill (level)
Tool(s)
Disassemble
Skill (level)
Tool(s)
Technical
Item ID(s)
Movables.{TileID}
Tile ID(s)
carpentry_02_54 carpentry_02_54
Stockpile supplies before the water shut-off.
— In-game description

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
Small Rain Collector Barrel 160 8
Large Rain Collector Barrel 400 20

Crafting

Carpentry

Main article: Carpentry
Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4
RainCollectorBarrel1 Carpentry.gif
Rain Collector Barrel
1.25 Carpentry Carpentry 4 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x4
(consumed)
Nails.png
Nails x4
(consumed)
Garbagebag.png
Garbage Bag x4
(consumed)
RainCollectorBarrel2 Carpentry.gif
Rain Collector Barrel
1.25 Carpentry Carpentry 7 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x4
(consumed)
Nails.png
Nails x4
(consumed)
Garbagebag.png
Garbage Bag x4
(consumed)

Trivia

  • The quantity of liquid inside of these cannot be directly edited in admin mode on a multiplayer server.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
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)


Retrieved: Build 41.78.16
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