Water Bottle: Difference between revisions

From PZwiki
m (Category Project: Water containers)
(→‎Code: Codebox Update)
Line 53: Line 53:


==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.78.16}}
  | line = false
<pre>
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
         item WaterBottleFull
         item WaterBottleFull
         {
         {
                DisplayName = Water Bottle,
            DisplayName = Water Bottle,
                DisplayCategory = Water,
            DisplayCategory = Water,
                Type = Drainable,
            Type = Drainable,
                Weight = 0.8,
            Weight = 0.8,
                Icon = WaterBottle_Full,
            Icon = WaterBottle_Full,
                CanStoreWater = TRUE,
            CanStoreWater = TRUE,
                FillFromDispenserSound = GetWaterFromDispenserPlasticMedium,
            FillFromDispenserSound = GetWaterFromDispenserPlasticMedium,
                FillFromTapSound = GetWaterFromTapPlasticMedium,
            FillFromTapSound = GetWaterFromTapPlasticMedium,
                IsWaterSource = TRUE,
            IsWaterSource = TRUE,
                ReplaceOnDeplete = WaterBottleEmpty,
            ReplaceOnDeplete = WaterBottleEmpty,
                ReplaceOnUseOn = WaterSource-WaterBottleFull,
            ReplaceOnUseOn = WaterSource-WaterBottleFull,
                UseDelta = 0.1,
            UseDelta = 0.1,
                UseWhileEquipped = FALSE,
            UseWhileEquipped = FALSE,
                CustomEatSound = DrinkingFromBottlePlastic,
            CustomEatSound = DrinkingFromBottlePlastic,
                StaticModel = WaterBottle,
            StaticModel = WaterBottle,
                WorldStaticModel = WaterBottleFull,
            WorldStaticModel = WaterBottleFull,
                Tooltip = Tooltip_item_OnlyPurifyMicrowave,
            Tooltip = Tooltip_item_OnlyPurifyMicrowave,
         }
         }
</pre>
}}
 
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''


''Empty Bottle'' [[File:WaterBottle_Empty.png]]
[[File:WaterBottle_Empty.png]] {{ID|WaterBottleEmpty}}<br>
{{Retrieved|version=41.78.16}}
{{CodeSnip
<pre>
  | lang = java
  | line = false
  | source = items.txt
  | retrieved = true
  | version = 41.78.16
  | code =
         item WaterBottleEmpty
         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,
                Tags = EmptyPetrol,
            Tags = EmptyPetrol,
                ReplaceTypes = PetrolSource WaterBottlePetrol;WaterSource WaterBottleFull,
            ReplaceTypes = PetrolSource WaterBottlePetrol;WaterSource WaterBottleFull,
                ToolTip = Tooltip_item_OnlyPurifyMicrowave,
            ToolTip = Tooltip_item_OnlyPurifyMicrowave,
         }
         }
</pre>
}}
}}


==See also==
==See also==

Revision as of 11:13, 1 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]
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 players 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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
BottleWithGas.png
Fire Bomb
0 XP none Engineer Empty Bottle
Empty Bottle
(consumed)
Petrol.png
Gas Can
(4 units)

(consumed)
Rag.png
Ripped Sheets
(consumed)

Distribution

Water bottles can be found in refrigerators, gas stations, convenience stores, and grocery stores.

Empty bottles can be found in bins.

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