Project Zomboid

Project Zomboid

Water Dispenser
PREMO 9 Sep, 2024 @ 1:22pm
Cooking water in jug help
Hi all i try to add this line to file
IsCookable = TRUE,
but i can only put empty and full jugs in to oven with drinking safe water but after fill empty jug with tainted water i cant put in the oven . How can i fix this . Script looks like that . Thx for your help.

module WaterDispenser {

imports {
Base,
}

item WaterJugEmpty
{
DisplayCategory = WaterContainer,
Weight = 1,
IsCookable = TRUE,
CanStoreWater = TRUE,
Type = Normal,
DisplayName = Empty Water Jug,
Icon = WaterJugEmpty,
ReplaceOnUseOn = WaterSource-WaterJugWaterFull,
SurvivalGear = TRUE,
StaticModel = WaterJugEmpty,
WorldStaticModel = WaterJugEmpty_Ground,
ReplaceInSecondHand = Bag_WaterJugEmpty_LHand holdingbagleft,
ReplaceInPrimaryHand = Bag_WaterJugEmpty_RHand holdingbagright,
Tags = EmptyPetrol,
ReplaceTypes = PetrolSource WaterJugPetrolFull;WaterSource WaterJugWaterFull,
}

item WaterJugWaterFull
{
DisplayCategory = Water,
IsWaterSource = TRUE,
IsCookable = TRUE,
Weight = 2,
CanStoreWater = TRUE,
Type = Drainable,
DisplayName = Water Jug with Water,
UseWhileEquipped = FALSE,
UseDelta = 0.004,
ReplaceOnDeplete = WaterJugEmpty,
ReplaceOnUseOn = WaterSource-WaterJugWaterFull,
Icon = WaterJugWaterFull,
StaticModel = WaterJugWaterFull,
WorldStaticModel = WaterJugWaterFull_Ground,
ReplaceInSecondHand = Bag_WaterJugWaterFull_LHand holdingbagleft,
ReplaceInPrimaryHand = Bag_WaterJugWaterFull_RHand holdingbagright,
}

item WaterJugPetrolFull
{
DisplayCategory = VehicleMaintenance,
Weight = 20,
Type = Drainable,
DisplayName = Water Jug with Gas,
UseWhileEquipped = FALSE,
UseDelta = 0.004,
ReplaceOnDeplete = WaterJugEmpty,
Icon = WaterJugPetrolFull,
StaticModel = WaterJugPetrolFull,
WorldStaticModel = WaterJugPetrolFull_Ground,
ReplaceInSecondHand = Bag_WaterJugPetrolFull_LHand holdingbagleft,
ReplaceInPrimaryHand = Bag_WaterJugPetrolFull_RHand holdingbagright,
Tags = Petrol,
}

}