Sand Bag: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: Updated code)
Line 28: Line 28:


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


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

Revision as of 05:52, 13 January 2024

Sand Bag
Sand Bag
Sand Bag
General
Category Item
Encumbrance
Heavy Load
2
Function Laying sand
Make sandbag wall
Capacity 4 units
Contents Sand
Technical details
item ID Base.Sandbag

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

Usage

A sand bag is a heavy but very sturdy bag of sand that can withstand gunshots. Stacking three of these bags together will create a protective, bulletproof, sandbag wall that can be hopped over by holding E or “Climb Through” with the right-click menu.

By having a shovel equipped, a sack can be used to pick up and spill sand on the ground.

Crafting

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

Distribution

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 Sandbag
	{
	    DisplayCategory = Material,
		Weight	=	2,
		Type	=	Drainable,
		UseWhileEquipped	=	FALSE,
		UseDelta	=	0.25,
		DisplayName	=	Sand Bag,
		Icon	=	Sandbag,
		ReplaceOnDeplete	=	EmptySandbag,
		ReplaceInSecondHand = Bag_Sandbag_LHand holdingbagleft,
		ReplaceInPrimaryHand = Bag_Sandbag_RHand holdingbagright,
		WorldStaticModel = SandBag,
		Tooltip = Tooltip_item_empty_sack_container,
	}

See also