Gravel Bag: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: CodeBox update)
Line 30: Line 30:


==Code==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=78.16}}
| {{CodeSnip
<pre>
  | lang = java
item Gravelbag
  | line = false
{
  | source = items.txt
    DisplayCategory = Material,
  | retrieved = true
Weight = 2,
  | version = 41
Type = Drainable,
  | incver = 78.16
UseWhileEquipped = FALSE,
  | code =
UseDelta = 0.25,
item Gravelbag
DisplayName = Gravel Bag,
{
Icon = Gravelbag,
    DisplayCategory       = Material,
ReplaceOnDeplete = EmptySandbag,
    Weight               = 2,
ReplaceInSecondHand = Bag_Sandbag_LHand holdingbagleft,
    Type                 = Drainable,
ReplaceInPrimaryHand = Bag_Sandbag_RHand holdingbagright,
    UseWhileEquipped     = FALSE,
WorldStaticModel = GravelBag,
    UseDelta             = 0.25,
Tooltip = Tooltip_item_empty_sack_container,
    DisplayName           = Gravel Bag,
}
    Icon                 = Gravelbag,
</pre>
    ReplaceOnDeplete     = EmptySandbag,
    ReplaceInSecondHand   = Bag_Sandbag_LHand holdingbagleft,
    ReplaceInPrimaryHand = Bag_Sandbag_RHand holdingbagright,
    WorldStaticModel     = GravelBag,
    Tooltip               = Tooltip_item_empty_sack_container,
}
  }}
}}


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

Revision as of 11:00, 31 January 2024

Project ZomboidItemsGravel Bag
Gravel Bag
Gravel Bag
Gravel Bag
General
Category Item
Encumbrance
Heavy Load
2
Function Laying gravel
Capacity 4 units
Contents Gravel
Technical details
item ID Base.Gravelbag

A gravel bag is a sack or similar container that has been filled with gravel. These bags can be used to either create gravel paths, or stacked together to create durable gravel barricades.

Usage

A gravel bag is a heavy, but very sturdy, sack containing gravel. It can be used to path gravel paths. Users can path up to four tiles of gravel with a full bag of gravel.

Gravel bags can also withstand gunshots. Stacking three of these bags together will craft a protective and bulletproof gravel bag wall that can be hopped over by holding E or "Climb Through" with the right-click menu.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
SandbagWall Carpentry.png
Gravel Bag Wall
1.25 Carpentry none Hammer.png
Hammer (tag)
(keep)
Gravelbag.png
Gravel Bag x3
(consumed)

Distribution

Gravel bags are usually found in wooden storage crates, which are mostly found in warehouses.

Code

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

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item Gravelbag
{
    DisplayCategory        = Material,
    Weight                = 2,
    Type                  = Drainable,
    UseWhileEquipped      = FALSE,
    UseDelta              = 0.25,
    DisplayName           = Gravel Bag,
    Icon                  = Gravelbag,
    ReplaceOnDeplete      = EmptySandbag,
    ReplaceInSecondHand   = Bag_Sandbag_LHand holdingbagleft,
    ReplaceInPrimaryHand  = Bag_Sandbag_RHand holdingbagright,
    WorldStaticModel      = GravelBag,
    Tooltip               = Tooltip_item_empty_sack_container,
}

See also