Plastic Bag: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: Codebox Update)
Line 88: Line 88:
|}
|}


==Code==
== Code ==
'''''From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)'''''
{{CodeBox
{{Retrieved|version=41|incver=78.16}}
| {{CodeSnip
<pre>     item Plasticbag
  | lang = java
    {
  | line = true
        DisplayCategory = Container,
  | start =
        WeightReduction = 30,
  | source = clothing_bags.txt
        Weight = 0.1,
  | retrieved = true
        Type = Container,
  | version = 41.78.16
        Capacity = 8,
  | code =
        DisplayName = Plastic Bag,
item Plasticbag
        Icon = Plasticbag,
{
        ReplaceInSecondHand = Bag_Plasticbag_LHand holdingbagleft,
    DisplayCategory = Container,
        ReplaceInPrimaryHand = Bag_Plasticbag_RHand holdingbagright,
    WeightReduction = 30,
        WorldStaticModel = PlasticBag_Ground,
    Weight = 0.1,
        SoundParameter = EquippedBaggageContainer PlasticBag,
    Type = Container,
    }
    Capacity = 8,
</pre>
    DisplayName = Plastic Bag,
    Icon = Plasticbag,
    ReplaceInSecondHand = Bag_Plasticbag_LHand holdingbagleft,
    ReplaceInPrimaryHand = Bag_Plasticbag_RHand holdingbagright,
    WorldStaticModel = PlasticBag_Ground,
    SoundParameter = EquippedBaggageContainer PlasticBag,
}
  }}
}}


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

Revision as of 13:46, 31 January 2024

Project ZomboidItemsBaggagePlastic Bag
Plastic Bag
Plastic Bag
Plastic Bag
General
Category Container
Encumbrance
Heavy Load
0.1
Body location One-handed
Capacity 8
Encumbrance reduction 30%
Technical details
Item ID Base.Plasticbag

A plastic bag is a common container item.

Usage

A plastic bag has a poor capacity and average weight reduction. It can be found in most kitchens and vehicles, making it a good substitute until something better is found. It must be equipped in either the primary or secondary hand to be accessed and can usually be dropped if a backpack is found.

Plastic bags can spawn with:

Plasticbag.png Plastic Bag

Distribution

Buildings

Building/Room Container Rolls Chance
All Male Corpse 1 0.1
Female Corpse 1 0.1
Plastic Bag 3 5 (x4)
Tote Bag 10 50 (x7 +55)
Kitchen Counter 2 9
Spiffo's Kitchen Counter 6 3 (x2)
Pile-o-crepe Kitchen Counter 6 3 (x3)
Motel Room (occupied) Other 2 0.5

Vehicles

Profession Container Rolls Chance
All Trunk 4 10

Code

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

Source: ProjectZomboid\media\scripts\clothing\clothing_bags.txt

Retrieved: Build 41.78.16
item Plasticbag
{
    DisplayCategory = Container,
    WeightReduction	=	30,
    Weight	=	0.1,
    Type	=	Container,
    Capacity	=	8,
    DisplayName	=	Plastic Bag,
    Icon	=	Plasticbag,
    ReplaceInSecondHand = Bag_Plasticbag_LHand holdingbagleft,
    ReplaceInPrimaryHand = Bag_Plasticbag_RHand holdingbagright,
    WorldStaticModel = PlasticBag_Ground,
    SoundParameter = EquippedBaggageContainer PlasticBag,
}

See also