Sand Bag: Difference between revisions

From PZwiki
m (Changed "empty sand bag" to "sack", changed shovel link)
(Update distribution file)
 
(35 intermediate revisions by 7 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Materials}}
{{languages|Sandbag}}
{{Page version|41.78.16}}
<div class="header" style="margin: 5px; align: right; background: #C3E4ED; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #9AC0CD"> <!-- Code for Background Colour -->
{{Infobox item
<div style="float: right;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">    '''Page Updated @ Version: 34.28'''    </div><!-- Code for Version Tag at top -->
|name=Sand Bag
<div style="float: left;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">   '''Navigation''' - [[:Category:Main|Main Index]] -> [[:Category:The_Game_World|The Game World]] -> [[:Category:Items|Items]] -> [[:Category:Construction|Construction]] -> [[{{PAGENAME}}]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
|model=Sandbag_Model.png
 
|icon=Sandbag.png
{{Items
|icon_name=Sand Bag
|image = SandbagZ.png 
|weight=2
|weight = 2.0
|primary_use=Laying sand
|secondary_use=Make [[Sandbag Wall|sandbag wall]]
|max_units=4
|contents=Sand
|item_id=Base.Sandbag
}}
}}
A '''sand bag''' is a [[sack]] that has been filled with sand.


A '''Sandbag''' is a [[sack]] that has been filled with sand or dirt. Gamewise at Version 34.28, there is no code differences between a [[Gravel_Bag|gravel bag]] and a Sandbag.
==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|sandbag wall]] that can be hopped over by holding <code>E</code> or “Climb Through” with the right-click menu.


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 Climbing 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.


By having a [[shovel]] equipped, Empty Sand bags can be used to pick up and spill dirt or sand on the ground to make farms on otherwise unfarmable tiles. Filling a [[sack]] with sand will transform it back to a normal [[sandbag]] which can be used as a barricade.
==Crafting==
{{Crafting/sandbox2
|sandbag_wall
}}


Usually found in wooden storage crates, which are mostly found in warehouses.
==Distribution==
The loot distributions can be found in the table(s) below.


== Crafting ==
<!--BOT FLAG|Sandbag|41.78.16-->
{| class="wikitable sortable" style="text-align:centre;"  
{{Clear}}
|-
<div class="togglebox theme-red">
! Name
    <div>Sandbag distribution
! class="unsortable" | Recipe
        <span class="mw-customtoggle-togglebox-Sandbag" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
! class="unsortable" | Description
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Sandbag">
! Skill Level
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
|-
<div class="pz-container">
{{RecipeLookup|1018}}
<div id="containers" style="flex-basis:30%">
|}
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | all
    | {{ll|crate}}
    | 0.71%
    |-
    | factory
    | {{ll|crate}}
    | 23.28%
    |-
    | factory
    | {{ll|crate}}
    | 41.14%
    |-
    | factory
    | {{ll|crate}}
    | 76.55%
    |-
    | farmstorage
    | {{ll|crate}}
    | 23.28%
    |-
    | farmstorage
    | {{ll|crate}}
    | 41.14%
    |-
    | farmstorage
    | {{ll|crate}}
    | 76.55%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 76.55%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|crate}}
    | 41.14%
    |-
    | garagestorage
    | {{ll|crate}}
    | 76.55%
    |-
    | gardenstore
    | {{ll|crate}}
    | 23.28%
    |-
    | gardenstore
    | {{ll|crate}}
    | 41.14%
    |-
    | gardenstore
    | {{ll|crate}}
    | 76.55%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |-
    | storageunit
    | {{ll|crate}}
    | 41.14%
    |-
    | storageunit
    | {{ll|crate}}
    | 76.55%
    |-
    | warehouse
    | {{ll|crate}}
    | 23.28%
    |-
    | warehouse
    | {{ll|crate}}
    | 41.14%
    |-
    | warehouse
    | {{ll|crate}}
    | 76.55%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Sandbag" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Sandbag|41.78.16-->
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 1223
  | source = items.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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,
}
}}
}}


== Code ==
==See also==
<nowiki>
*[[Dirt Bag]]
    item Dirtbag
*[[Gravel Bag]]
Weight = 2,
*[[Carpentry]]
Type = Drainable,
UseWhileEquipped = FALSE,
UseDelta = 0.25,
DisplayName = Dirt Bag,
Icon = Sandbag,
ReplaceOnDeplete = EmptySandbag,
</nowiki>
<nowiki>
item Sandbag
Weight = 2,
Type = Drainable,
UseWhileEquipped = FALSE,
UseDelta = 0.25,
DisplayName = Sand Bag,
Icon = Sandbag,
ReplaceOnDeplete = EmptySandbag,
</nowiki>


==See Also==
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Carpentry materials]]


[[Category:Items]]
{{Navbox items|carpentry_materials}}
[[Category:Version 34.28]]

Latest revision as of 13:45, 30 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Sand Bag
Sandbag Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
2
Function
Laying sand
Make sandbag wall
Properties
Contents
Sand
Capacity
4 units
Technical
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 Ingredients Tools Requirements Workstation XP
SandbagWall Carpentry.png
Sandbag Wall
Sandbag.png Sand Bag ×3
Hammer.png
Hammer (tag)
none none 1.25 Carpentry

Distribution

The loot distributions can be found in the table(s) below.

Sandbag distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
all crate 0.71%
factory crate 23.28%
factory crate 41.14%
factory crate 76.55%
farmstorage crate 23.28%
farmstorage crate 41.14%
farmstorage crate 76.55%
farmstorage metal_shelves 23.28%
farmstorage metal_shelves 41.14%
farmstorage metal_shelves 76.55%
garagestorage crate 23.28%
garagestorage crate 41.14%
garagestorage crate 76.55%
gardenstore crate 23.28%
gardenstore crate 41.14%
gardenstore crate 76.55%
storageunit crate 23.28%
storageunit crate 41.14%
storageunit crate 76.55%
warehouse crate 23.28%
warehouse crate 41.14%
warehouse crate 76.55%

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