Water Bottle: Difference between revisions

From PZwiki
m (Distribution table fix)
 
(38 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Food|Drinks|Water containers}}
{{header|Project Zomboid|Items|Food|Drinks|type=Food|version=Version 41|incver=66}}{{About}}
{{Page version|41.78.16}}
{{Infobox drainable
{{About|the basic water bottle|other variants}}
|display_name=Water Bottle
{{Infobox item
|name_colour=Tool
|name=Water Bottle
|name_text_colour=Tool
|model=WaterBottle_Model.png
|image=WaterBottle_Model.png
|icon=WaterBottle_Full.png
|image_width=300px
|icon_name=Water Bottle
|alternate_image=WaterBottle_Full.png
|model2=WaterBottleEmpty_Model.png
|alternate_name=Water Bottle
|icon2=WaterBottle_Empty.png
|alternate_link=
|icon_name2=Empty Bottle
|alternate_image2=WaterBottle_Empty.png
|category=Water Container <small>(empty)</small><br>Water<small> (full)</small>
|alternate_name2=Empty Bottle
|weight=0.1
|alternate_link2=
|weight_full=0.8
|category='''Empty:''' Water Container<br>'''Full:''' Water
|function=[[Water]] storage
|weight='''Empty:''' 0.1<br>'''Full:''' 0.8
|primary_use=Water storage
|max_units=10
|max_units=10
|contents=[[Water]]
|contents=[[Water]]
|can_boil_water=False
|can_boil_water=Only in [[Heat Source#Microwave Oven|Microwave Oven]]
|class_name=Base.WaterBottleEmpty<br>Base.WaterBottleFull
|item_id=Base.WaterBottleEmpty<br>Base.WaterBottleFull
}}A '''water bottle''' is an essential [[water]] containing item in [[Project Zomboid]].  
}}
A '''water bottle''' is an essential [[water]] containing item in [[Project Zomboid]].


==Usage==
==Usage==
A water bottle will automatically satiate the player's [[thirst]], so long as it's in the players main inventory (i.e. not in a [[Bags|bag]]).  
A water bottle will automatically satiate the player's [[thirst]], so long as it's in the [[player]]'s main inventory (i.e., not in a [[Bags|bag]]).


===Refilling===
===Refilling===
The contents will gradually deplete, therefore requiring to be refilled. A water bottle can be filled so long as it isn't full. To refill a water bottle, either:
The contents will gradually deplete, therefore requiring to be refilled. A water bottle can be filled so long as it isn't full. To refill a water bottle, either:
#''Right-click'' a water containing item in the player' inventory (e.g. [[Cooking Pot with Water|cooking pot with water]]) and ''left-click'' "Pour into" > "Water Bottle".  
#''Right-click'' a water containing item in the player' inventory (e.g., [[Cooking Pot with Water|cooking pot with water]]) and ''left-click'' "Pour into" > "Water Bottle".
#''Right-click'' a water source (i.e. [[Faucet|sink]], [[well]], [[Rain Collector Barrel|rain collector]], etc.) and ''left-click'' "Fill" > "Water Bottle".  
#''Right-click'' a water source (i.e., [[Faucet|sink]], [[well]], [[Rain Collector Barrel|rain collector]], etc.) and ''left-click'' "Fill" > "Water Bottle".


Water from rivers or [[Rain Collector Barrel|rain collector barrels]] will be ''tainted'', causing the player to become [[Moodles#Sick|sick]].  
Water from rivers or [[Rain Collector Barrel|rain collector barrels]] will be ''tainted'', causing the player to become [[sick]]. It can be boiled in a [[Heat Source#Microwave Oven|microwave oven]] to purify it.


After a random number of days, the waterworks will shut off, requiring the player to survive on scavenged water or what is left in cisterns and house systems.  
After a random number of days, the waterworks will shut off, requiring the player to survive on scavenged water or what is left in cisterns and house systems.


==Crafting==
==Crafting==
===Engineering===
===Engineering===
{{Main|Electrical}}
{{Main|Electrical}}
{{Crafting header|ing=3}}
{{Crafting/sandbox2
{{Crafting electrical|302|ing=3}}
|fire_bomb
|}
}}


==Distribution==
==Distribution==
Water bottles can be found in refrigerators, gas stations, convenience stores, and grocery stores.  
The loot distributions can be found in the table(s) below.


Empty bottles can be found in bins.
<!--BOT FLAG|WaterBottleEmpty|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>WaterBottleEmpty distribution
        <span class="mw-customtoggle-togglebox-WaterBottleEmpty" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-WaterBottleEmpty">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | all
    | {{ll|bin}}
    | 6.29%
    |-
    | bar
    | {{ll|bin}}
    | 3.98%
    |-
    | barkitchen
    | {{ll|bin}}
    | 3.98%
    |-
    | barstorage
    | {{ll|bin}}
    | 3.98%
    |-
    | beergarden
    | {{ll|bin}}
    | 3.98%
    |-
    | garagestorage
    | {{ll|crate}}
    | 15.1%
    |-
    | garagestorage
    | {{ll|crate}}
    | 41.14%
    |-
    | motelroomoccupied
    | {{ll|bin}}
    | 6.29%
    |-
    | storageunit
    | {{ll|crate}}
    | 15.1%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Ambulance
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Carpenter
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Clothing
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Construction Worker
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Distillery
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Doctor
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Electrician
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Farmer
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Fisherman
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Fossoil
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Golf
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Groceries
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Heralds
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Mass Gen Fac
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Metal Welder
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Painter
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Police
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Postal
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Radio
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Ranger
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Survivalist
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Taxi
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Transit
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Heavy
    | {{ll|Trunk}}
    | 10.78%
    |-
    | Sports
    | {{ll|Trunk}}
    | 10.78%
    |-
    | Standard
    | {{ll|Trunk}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-WaterBottleEmpty" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|WaterBottleEmpty|41.78.16-->


==Gallery==
==Gallery==
<gallery>
<gallery>
WaterBottle_Model.png|Water Bottle model and texture used when placed in the world.
WaterBottleAnim Model.png|Water Bottle model and texture used when performing an animation (e.g., drinking)
WaterBottleEmpty_Model.png|Empty Bottle model and texture used when placed in the world.
WaterBottleAnim_Model.png|Water Bottle model and texture used when performing an animation (e.g. drinking).
</gallery>
</gallery>


== Code ==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:WaterBottle_Full.png]] {{ID|WaterBottleFull}}<br>
 
{{CodeSnip
''Water Bottle'' [[File:WaterBottle_Full.png]]
  | lang = java
{{Retrieved|version=41|incver=66}}
  | line = true
<pre>    item WaterBottleFull
  | start = 2506
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item WaterBottleFull
{
{
DisplayCategory = Water,
DisplayName = Water Bottle,
IsWaterSource = TRUE,
DisplayCategory = Water,
Weight = 0.8,
Type = Drainable,
CanStoreWater = TRUE,
Weight = 0.8,
FillFromDispenserSound = GetWaterFromDispenserPlasticMedium,
Icon = WaterBottle_Full,
FillFromTapSound = GetWaterFromTapPlasticMedium,
CanStoreWater = TRUE,
Type = Drainable,
FillFromDispenserSound = GetWaterFromDispenserPlasticMedium,
UseWhileEquipped = FALSE,
FillFromTapSound = GetWaterFromTapPlasticMedium,
UseDelta = 0.1,
IsWaterSource = TRUE,
DisplayName = Water Bottle,
ReplaceOnDeplete = WaterBottleEmpty,
ReplaceOnDeplete = WaterBottleEmpty,
ReplaceOnUseOn = WaterSource-WaterBottleFull,
ReplaceOnUseOn = WaterSource-WaterBottleFull,
UseDelta = 0.1,
Icon = WaterBottle_Full,
UseWhileEquipped = FALSE,
StaticModel = WaterBottle,
CustomEatSound = DrinkingFromBottlePlastic,
WorldStaticModel = WaterBottleFull,
StaticModel = WaterBottle,
CustomEatSound = DrinkingFromBottlePlastic,
WorldStaticModel = WaterBottleFull,
}</pre>
Tooltip = Tooltip_item_OnlyPurifyMicrowave,
 
}
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
}}


''Empty Bottle'' [[File:WaterBottle_Empty.png]]
[[File:WaterBottle_Empty.png]] {{ID|WaterBottleEmpty}}<br>
{{Retrieved|version=41|incver=66}}
{{CodeSnip
<pre> item WaterBottleEmpty
  | lang = java
  | line = true
  | start = 546
  | source = items.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item WaterBottleEmpty
{
{
DisplayCategory = WaterContainer,
    DisplayCategory = WaterContainer,
Weight = 0.1,
Weight = 0.1,
CanStoreWater = TRUE,
CanStoreWater = TRUE,
Type = Normal,
Type = Normal,
DisplayName = Empty Bottle,
DisplayName = Empty Bottle,
ReplaceOnUseOn = WaterSource-WaterBottleFull,
ReplaceOnUseOn = WaterSource-WaterBottleFull,
Icon = WaterBottle_Empty,
Icon = WaterBottle_Empty,
StaticModel = WaterBottle,
StaticModel = WaterBottle,
WorldStaticModel = WaterBottleEmpty,
WorldStaticModel = WaterBottleEmpty,
}</pre>
Tags = EmptyPetrol,
ReplaceTypes = PetrolSource WaterBottlePetrol;WaterSource WaterBottleFull,
ToolTip = Tooltip_item_OnlyPurifyMicrowave,
}
}}
}}


==See also==
==See also==
Line 100: Line 280:
*[[Orange Soda]]
*[[Orange Soda]]


{{Navbox_food}}
{{Navbox items|containers}}
{{Navbox_equipment}}
[[Category:Consumables]]

Latest revision as of 19:52, 30 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
PlushSpiffo.pngThis article is about the basic water bottle. For other variants, see Water Bottle (disambiguation).
Water Bottle
WaterBottle Model.png
WaterBottleEmpty Model.png
General
Category
Water Container (empty)
Water (full)
Encumbrance
Moodle Icon HeavyLoad.png
0.1 (empty)
0.8 (full)
Function
Water storage
Properties
Contents
Capacity
10 units
Can boil water
Technical
Item ID
Base.WaterBottleEmpty
Base.WaterBottleFull

A water bottle is an essential water containing item in Project Zomboid.

Usage

A water bottle will automatically satiate the player's thirst, so long as it's in the player's main inventory (i.e., not in a bag).

Refilling

The contents will gradually deplete, therefore requiring to be refilled. A water bottle can be filled so long as it isn't full. To refill a water bottle, either:

  1. Right-click a water containing item in the player' inventory (e.g., cooking pot with water) and left-click "Pour into" > "Water Bottle".
  2. Right-click a water source (i.e., sink, well, rain collector, etc.) and left-click "Fill" > "Water Bottle".

Water from rivers or rain collector barrels will be tainted, causing the player to become sick. It can be boiled in a microwave oven to purify it.

After a random number of days, the waterworks will shut off, requiring the player to survive on scavenged water or what is left in cisterns and house systems.

Crafting

Engineering

Main article: Electrical
Product Ingredients Tools Requirements Workstation XP
BottleWithGas.png
Fire Bomb
WaterBottle Empty.png Empty Bottle ×1
Petrol.png Gas Can ×4 unit(s)
Rag.png Ripped Sheets ×1
none
Profession engineer.png
Engineer occupation
none none

Distribution

The loot distributions can be found in the table(s) below.

WaterBottleEmpty distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
all bin 6.29%
bar bin 3.98%
barkitchen bin 3.98%
barstorage bin 3.98%
beergarden bin 3.98%
garagestorage crate 15.1%
garagestorage crate 41.14%
motelroomoccupied bin 6.29%
storageunit crate 15.1%
Vehicles
Type Container Effective chance
Ambulance Trunk 10.78%
Carpenter Trunk 10.78%
Clothing Trunk 10.78%
Construction Worker Trunk 10.78%
Distillery Trunk 10.78%
Doctor Trunk 10.78%
Electrician Trunk 10.78%
Farmer Trunk 10.78%
Fisherman Trunk 10.78%
Fossoil Trunk 10.78%
Golf Trunk 10.78%
Groceries Trunk 10.78%
Heralds Trunk 10.78%
Mass Gen Fac Trunk 10.78%
Metal Welder Trunk 10.78%
Painter Trunk 10.78%
Police Trunk 10.78%
Postal Trunk 10.78%
Radio Trunk 10.78%
Ranger Trunk 10.78%
Survivalist Trunk 10.78%
Taxi Trunk 10.78%
Transit Trunk 10.78%
Heavy Trunk 10.78%
Sports Trunk 10.78%
Standard Trunk 10.78%

Gallery

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

WaterBottle Full.png WaterBottleFull
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item WaterBottleFull
	{
		DisplayName = Water Bottle,
		DisplayCategory = Water,
		Type = Drainable,
		Weight = 0.8,
		Icon = WaterBottle_Full,
		CanStoreWater = TRUE,
		FillFromDispenserSound = GetWaterFromDispenserPlasticMedium,
		FillFromTapSound = GetWaterFromTapPlasticMedium,
		IsWaterSource = TRUE,
		ReplaceOnDeplete = WaterBottleEmpty,
		ReplaceOnUseOn = WaterSource-WaterBottleFull,
		UseDelta = 0.1,
		UseWhileEquipped = FALSE,
		CustomEatSound = DrinkingFromBottlePlastic,
		StaticModel = WaterBottle,
		WorldStaticModel = WaterBottleFull,
		Tooltip = Tooltip_item_OnlyPurifyMicrowave,
	}

WaterBottle Empty.png WaterBottleEmpty
Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item WaterBottleEmpty
	{
	    DisplayCategory = WaterContainer,
		Weight	=	0.1,
		CanStoreWater	=	TRUE,
		Type	=	Normal,
		DisplayName	=	Empty Bottle,
		ReplaceOnUseOn	=	WaterSource-WaterBottleFull,
		Icon	=	WaterBottle_Empty,
		StaticModel = WaterBottle,
		WorldStaticModel = WaterBottleEmpty,
		Tags = EmptyPetrol,
		ReplaceTypes = PetrolSource WaterBottlePetrol;WaterSource WaterBottleFull,
		ToolTip = Tooltip_item_OnlyPurifyMicrowave,
	}

See also