Dirt Bag: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: CodeBox update)
Line 22: Line 22:
A dirt bag cannot be found in the [[Knox Country|world]] and can only be obtained by filling a sack with dirt using a [[shovel]]. A [[sack]] can be filled by right-clicking a patch of grass or dirt with both the [[sack]] and a [[shovel]] in the player's inventory, and using the action "Take some Dirt > Sack".
A dirt bag cannot be found in the [[Knox Country|world]] and can only be obtained by filling a sack with dirt using a [[shovel]]. A [[sack]] can be filled by right-clicking a patch of grass or dirt with both the [[sack]] and a [[shovel]] in the player's inventory, and using the action "Take some Dirt > Sack".


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


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

Revision as of 10:17, 31 January 2024

Dirt Bag
Dirt Bag
Dirt Bag
General
Category Item
Encumbrance
Heavy Load
2
Function Spilling dirt
Capacity 4 units
Contents Dirt
Technical details
item ID Base.Dirtbag

A dirt bag is a sack that has been filled with dirt.

Usage

A dirt bag is used to spill dirt on the ground, allowing the tile to be tilled for farming, and preventing further grass from growing.

A dirt bag can have up to 4 tiles of dirt. To fill a dirt bag with more dirt, a shovel must be in the player's main inventory, then a patch of grass or dirt can be right-clicked, followed by using the action "Take some Dirt > Dirt Bag".

Distribution

A dirt bag cannot be found in the world and can only be obtained by filling a sack with dirt using a shovel. A sack can be filled by right-clicking a patch of grass or dirt with both the sack and a shovel in the player's inventory, and using the action "Take some Dirt > Sack".

Code

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

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.65
item Dirtbag
{
    DisplayCategory     = Material,
    Weight              = 2,
    Type                = Drainable,
    UseWhileEquipped    = FALSE,
    UseDelta            = 0.25,
    DisplayName         = Dirt Bag,
    Icon                = Sandbag,
    ReplaceOnDeplete    = EmptySandbag,
    ReplaceInSecondHand = Bag_Sandbag_LHand holdingbagleft,
    ReplaceInPrimaryHand= Bag_Sandbag_RHand holdingbagright,
    WorldStaticModel    = DirtBag_Ground,
    Tooltip             = Tooltip_item_empty_sack_container,
}

See also