Shovel: Difference between revisions

From PZwiki
No edit summary
(Update distribution file)
 
(37 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{notice|standard}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{languages|Shovel}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Tools|type=Tool|version=Version 41|incver=73}}{{Infobox weapon
{{Infobox item
|display_name=Shovel
|name=Shovel
|name_colour=Tool
|model=Shovel_Model.png
|name_text_colour=Tool
|icon=Shovel.png
|image=Shovel_Model.png
|icon_name=Shovel
|image_width=200px
|model2=Shovel02_Model.png
|alternate_image=Shovel.png
|icon2=Shovel2.png
|alternate_name=Shovel
|icon_name2=Shovel
|alternate_link=
<!--General-->
|alternate_image2=Shovel2.png
|category=Gardening
|alternate_name2=Shovel
|weight=2.0
|alternate_link2=
<!--GENERAL-->
|weight=1.5
|equipped=Two-handed
|equipped=Two-handed
|attachment_type=Shovel
|function=[[Farming]]
|function=[[Farming]]
|skill_type=Blunt
<!--Properties-->
|metal_value=70
|condition_max=10
|condition_max=10
|skill_type=Blunt
|condition_lower_chance=10
<!--DAMAGE-->
<!--Damage-->
|type=Slash
|damge_type=Slash
|swing_time=2.1
|min_damage=0.8
|max_damage=1.9
|door_damage=10
|tree_damage=1
|min_range=0.61
|min_range=0.61
|max_range=1.6
|max_range=1.6
|min_damage=0.8
|base_speed=0.8
|max_damage=1.9
|push_back=0.5
|push_back=0.5
|knockdown=2
|knockdown=2
<!--TECHNICAL DETAILS-->
|crit_chance=40
|class_name=farming.Shovel
<!--Technical-->
}}A '''shovel''' is a [[farming]] tool or [[Weapons#Long Blunt|long blunt weapon]] that can move dirt, sand, and gravel. It can also [[Farming|till soil]].
|tag=ClearAshes
|tag2=DigGrave
|tag3=DigPlow
|tag4=TakeDirt
|item_id=Base.Shovel
|item_id2=Base.Shovel2
}}
A '''shovel''' is a [[farming]] tool or [[Weapons#Long Blunt|long blunt weapon]] that can move dirt, sand, and gravel. It can also [[Farming|till soil]].


==Usage==
==Usage==
===General===
===General===
 
Shovels can be used to dig graves to permanently dispose of up to 5 corpses and all the items the corpses are wearing/carrying. It also fulfills the same functions as a [[trowel]] or [[Hand Fork|hand fork]], in that they can be used to [[Farming|till]] grass and dirt tiles and to find [[worm]]s.
Shovels can be used to dig graves to permanently dispose of up to 5 corpses and all the items the corpses are wearing/carrying. It also fulfills the same functions as a [[trowel]] or [[Hand Fork|hand fork]] in that they can be used to [[Farming|till]] grass and dirt tiles and to find [[worm]]s.


===Moving tiles===
===Moving tiles===
While the player has the shovel and an [[Sack|empty sack]] in their main inventory, a new contextual option will appear when ''right-clicking'' any one of these aforementioned tiles. This new option allows the player to move up to ''four'' tiles of dirt, sand, or gravel into a single sack, upon changing the sack to a [[Dirt Bag|dirt bag]], [[sandbag]] or [[Gravel Bag|gravel bag]], respectively. Each filled sack can then be "spilled" over any other pre-existing tile, changing it to the contents of the sack.


While the player has the shovel and an [[Sack|empty sack]] in their main inventory, a new contextual option will appear when ''right-clicking'' any one of these aforementioned tiles. This new option allows the player to move up to ''four'' tiles of dirt, sand or gravel into a single sack, upon changing the sack to a [[Dirt Bag|dirt bag]], [[sandbag]] or [[Gravel Bag|gravel bag]], respectively. Each filled sack can then be "spilled" over any other pre-existing tile, changing it to the contents of the sack.  
This option only works with the spade variant of the shovel, not the square head.


This mechanic is ideal when a specific location is desired for farming in which doesn't already contain dirt tiles. There generally isn't much use in spreading sand around, but areas that have been covered in gravel will not be overgrown by [[erosion]] and saplings cannot grow there, allowing for the creation of artificial driveways. Finally, bags full of sand or gravel can be used to set up [[Sandbag Wall|sandbag wall]]s and [[Gravel Bag Wall|gravel bag wall]]s, which offer some protection from [[Weapons#Firearms|gunfire]].  
This mechanic is ideal when a specific location is desired for farming in which doesn't already contain dirt tiles. There generally isn't much use in spreading sand around, but areas that have been covered in gravel will not be overgrown by [[erosion]] and saplings cannot grow there, allowing for the creation of artificial driveways. Finally, bags full of sand or gravel can be used to set up [[Sandbag Wall|sandbag wall]]s and [[Gravel Bag Wall|gravel bag wall]]s, which offer some protection from [[Weapons#Firearms|gunfire]].


===Weapon===
===Weapon===
The shovel may also be used as a blunt melee weapon with a fast attack speed and intermediate damage. However, it is fairly fragile and caps at around 20-50 [[zombie]] kills before breaking, depending on the players' maintenance and long blunt skills, respectively.
==Condition==
The shovel has a maximum condition of 10. Its rate of degradation is influenced by the [[Skills|long blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (10 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.


The shovel may also be used as a blunt melee weapon with a fast attack speed and intermediate damage, however it is fairly fragile and caps at around 20-50 [[zombie]] kills before breaking, depending on long blunt level.
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
{{Durability weapon|10}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Shovel|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Shovel distribution
        <span class="mw-customtoggle-togglebox-Shovel" 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>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Shovel">
    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">
<div id="containers" style="flex-basis:50%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | Bag_ToolBag
    | {{ll|Bag_ToolBag}}
    | 2.81%
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 10.78%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 15.1%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 15.1%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 15.1%
    |-
    | ToolsCache1
    | {{ll|ToolsBox}}
    | 10.78%
    |-
    | ToolsCache1
    | {{ll|counter}}
    | 10.78%
    |-
    | all
    | {{ll|crate}}
    | 0.65%
    |-
    | all
    | {{ll|metal_shelves}}
    | 2.57%
    |-
    | all
    | {{ll|toolcabinet}}
    | 10.78%
    |-
    | bedroom
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 10.78%
    |-
    | construction
    | {{ll|crate}}
    | 10.78%
    |-
    | drugshack
    | {{ll|counter}}
    | 10.78%
    |-
    | drugshack
    | {{ll|crate}}
    | 10.78%
    |-
    | factory
    | {{ll|crate}}
    | 10.78%
    |-
    | factory
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | farmstorage
    | {{ll|crate}}
    | 10.78%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | firestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|counter}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|crate}}
    | 0.65%
    |-
    | garagestorage
    | {{ll|crate}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|locker}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | gardenstore
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | gardenstore
    | {{ll|shelves}}
    | 10.78%
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | generalstore
    | {{ll|shelves}}
    | 10.78%
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 10.78%
    |-
    | gigamart
    | {{ll|shelves}}
    | 10.78%
    |-
    | kitchen
    | {{ll|crate}}
    | 10.78%
    |-
    | loggingfactory
    | {{ll|crate}}
    | 10.78%
    |-
    | loggingfactory
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|counter}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|crate}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|shelves}}
    | 10.78%
    |-
    | pawnshopstorage
    | {{ll|crate}}
    | 10.78%
    |-
    | pawnshopstorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | producestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | shed
    | {{ll|crate}}
    | 10.78%
    |-
    | shed
    | {{ll|locker}}
    | 10.78%
    |-
    | shed
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | storageunit
    | {{ll|crate}}
    | 0.65%
    |-
    | storageunit
    | {{ll|crate}}
    | 10.78%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 0.65%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | toolstore
    | {{ll|counter}}
    | 10.78%
    |-
    | toolstore
    | {{ll|crate}}
    | 10.78%
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | toolstore
    | {{ll|shelves}}
    | 10.78%
    |-
    | toolstorestorage
    | {{ll|crate}}
    | 10.78%
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | warehouse
    | {{ll|crate}}
    | 10.78%
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Shovel" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Shovel|41.78.16-->


Shovels can commonly be found inside [[Container#Crates|crates]], sheds, and [[Containers#Shelves|work shelves]].
<!--BOT FLAG|Shovel2|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Shovel2 distribution
        <span class="mw-customtoggle-togglebox-Shovel2" 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>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Shovel2">
    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">
<div id="containers" style="flex-basis:50%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | Bag_ToolBag
    | {{ll|Bag_ToolBag}}
    | 2.81%
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 10.78%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 15.1%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 15.1%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 15.1%
    |-
    | ToolsCache1
    | {{ll|ToolsBox}}
    | 10.78%
    |-
    | ToolsCache1
    | {{ll|counter}}
    | 10.78%
    |-
    | all
    | {{ll|crate}}
    | 0.65%
    |-
    | all
    | {{ll|metal_shelves}}
    | 2.57%
    |-
    | all
    | {{ll|toolcabinet}}
    | 10.78%
    |-
    | bedroom
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 10.78%
    |-
    | construction
    | {{ll|crate}}
    | 10.78%
    |-
    | drugshack
    | {{ll|counter}}
    | 10.78%
    |-
    | drugshack
    | {{ll|crate}}
    | 10.78%
    |-
    | factory
    | {{ll|crate}}
    | 10.78%
    |-
    | factory
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | farmstorage
    | {{ll|crate}}
    | 10.78%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | firestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|counter}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|crate}}
    | 0.65%
    |-
    | garagestorage
    | {{ll|crate}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|locker}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | gardenstore
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | gardenstore
    | {{ll|shelves}}
    | 10.78%
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | generalstore
    | {{ll|shelves}}
    | 10.78%
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 10.78%
    |-
    | gigamart
    | {{ll|shelves}}
    | 10.78%
    |-
    | kitchen
    | {{ll|crate}}
    | 10.78%
    |-
    | loggingfactory
    | {{ll|crate}}
    | 10.78%
    |-
    | loggingfactory
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|counter}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|crate}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|shelves}}
    | 10.78%
    |-
    | pawnshopstorage
    | {{ll|crate}}
    | 10.78%
    |-
    | pawnshopstorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | producestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | shed
    | {{ll|crate}}
    | 10.78%
    |-
    | shed
    | {{ll|locker}}
    | 10.78%
    |-
    | shed
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | storageunit
    | {{ll|crate}}
    | 0.65%
    |-
    | storageunit
    | {{ll|crate}}
    | 10.78%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 0.65%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | toolstore
    | {{ll|counter}}
    | 10.78%
    |-
    | toolstore
    | {{ll|crate}}
    | 10.78%
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | toolstore
    | {{ll|shelves}}
    | 10.78%
    |-
    | toolstorestorage
    | {{ll|crate}}
    | 10.78%
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | warehouse
    | {{ll|crate}}
    | 10.78%
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Shovel2" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Shovel2|41.78.16-->


== Code ==
==Code==
'''''From farming.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Shovel.png]] {{ID|Base.Shovel}}<br>
<pre>    
{{CodeSnip
    item Shovel
  | lang = java
         DisplayCategory = Gardening,
  | line = true
         Type = Weapon,
  | start = 1727
         DisplayName = Shovel,
  | source = items_weapons.txt
         Icon = Shovel,
  | retrieved = true
         Weight = 2.0,
  | version = 41.78.16
         SubCategory = Swinging,
  | code =
         MinAngle = 0.85,
item Shovel
         MaxRange = 1.6,
    {
         MinRange = 0.61,
         DisplayCategory = Gardening,
         PushBackMod = 0.5,
         Type = Weapon,
         HitAngleMod = -30.0,
         DisplayName = Shovel,
         SwingAnim = Bat,
         Icon = Shovel,
         MaxHitCount = 3,
         Weight = 2.0,
         WeaponSprite = Shovel,
         SubCategory   =     Swinging,
         IdleAnim = Idle_Weapon2,
         MinAngle = 0.85,
         RunAnim = Run_Weapon2,
         MaxRange = 1.6,
         Weight = 1.5,
         MinRange = 0.61,
         DoorDamage = 10,
         PushBackMod = 0.5,
         MinimumSwingTime = 2.1,
         HitAngleMod = -30.0,
         SwingTime = 2.1,
         SwingAnim = Bat,
         SwingAmountBeforeImpact = 0.02,
         MaxHitCount = 3,
         ConditionLowerChanceOneIn = 10,
         WeaponSprite = Shovel,
         ConditionMax = 10,
         IdleAnim = Idle_Weapon2,
         Categories = Blunt,
         RunAnim = Run_Weapon2,
         TwoHandWeapon = TRUE,
         Weight = 1.5,
         BreakSound = ShovelBreak,
         DoorDamage = 10,
         DoorHitSound = ShovelHit,
         MinimumSwingTime = 2.1,
HitSound = ShovelHit,
         SwingTime = 2.1,
HitFloorSound = ShovelHit,
         SwingAmountBeforeImpact = 0.02,
SwingSound = ShovelSwing,
         ConditionLowerChanceOneIn = 10,
         KnockdownMod = 2,
         ConditionMax = 10,
         KnockBackOnNoDeath = TRUE,
         Categories = Blunt,
         MetalValue = 70,
         TwoHandWeapon = TRUE,
         TreeDamage = 1,
         BreakSound =   ShovelBreak,
         CriticalChance = 40,
         DoorHitSound = ShovelHit,
         CritDmgMultiplier = 2,
HitSound = ShovelHit,
         MaxDamage = 1.9,
HitFloorSound = ShovelHit,
         MinDamage = 0.8,
SwingSound = ShovelSwing,
         BaseSpeed = 0.8,
         KnockdownMod = 2,
       WeaponLength = 0.55,
         KnockBackOnNoDeath = TRUE,
         DamageCategory = Slash,
         MetalValue = 70,
         DamageMakeHole = TRUE,
         TreeDamage = 1,
         AttachmentType = Shovel,
         CriticalChance = 40,
         Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
         CritDmgMultiplier = 2,
</pre>
         MaxDamage = 1.9,
         MinDamage = 0.8,
         BaseSpeed = 0.8,
       WeaponLength = 0.55,
         DamageCategory = Slash,
         DamageMakeHole = TRUE,
         AttachmentType = Shovel,
         Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
    }
}}


[[File:Shovel2.png]] {{ID|Base.Shovel2}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1775
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Shovel2
    {
        DisplayCategory = Gardening,
        Type = Weapon,
        DisplayName = Shovel,
        Icon = Shovel2,
        Weight = 2.0,
        SubCategory    =    Swinging,
        MinAngle = 0.85,
        MaxRange = 1.6,
        MinRange = 0.61,
        PushBackMod = 0.5,
        HitAngleMod = -30.0,
        SwingAnim = Bat,
        MaxHitCount = 3,
        WeaponSprite = Shovel02,
        IdleAnim = Idle_Weapon2,
        RunAnim = Run_Weapon2,
        Weight = 1.5,
        DoorDamage = 5,
        MinimumSwingTime = 2.1,
        SwingTime = 2.1,
        SwingAmountBeforeImpact = 0.02,
        ConditionLowerChanceOneIn = 10,
        ConditionMax = 10,
        Categories = Blunt,
        TwoHandWeapon = TRUE,
        BreakSound  =  ShovelBreak,
        DoorHitSound = ShovelHit,
        HitSound = ShovelHit,
        HitFloorSound = ShovelHit,
        SwingSound = ShovelSwing,
        KnockdownMod = 2,
        KnockBackOnNoDeath = TRUE,
        MetalValue = 70,
        TreeDamage = 1,
        CriticalChance = 40,
        CritDmgMultiplier = 2,
        MinDamage = 0.8,
        MaxDamage = 1.9,
        BaseSpeed = 0.8,
      WeaponLength = 0.55,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
    }
}}
}}


==See also==
==See also==
*[[Trowel]]
*[[Trowel]]
*[[Hand Fork]]
*[[Hand Fork]]
*[[Farming Guide]]
*[[Farming]]
 
{{Navbox items|blunt}}
 


{{Navbox_equipment}}
{{Navbox_weapons}}


[[Category:Farming]]
[[Category:Farming tools]]
[[Category:Weapons]]
[[Category:Tools]]
[[Category:Melee Weapons]]

Latest revision as of 05:40, 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]
Shovel
Shovel Model.png
Shovel02 Model.png
General
Category
Gardening
Encumbrance
Moodle Icon HeavyLoad.png
2.0
Equipped
Two-handed
Slot attached
Back
Function
Skill
Properties
Max condition
10
Base durability
100
Performance
Damage
0.8–1.9
Door damage
10
Tree damage
1
Range
0.61–1.6
Attack speed
0.8
Knockback
0.5
Knockdown
2
Crit chance
40%
Technical
Item ID
Base.Shovel
Base.Shovel2

A shovel is a farming tool or long blunt weapon that can move dirt, sand, and gravel. It can also till soil.

Usage

General

Shovels can be used to dig graves to permanently dispose of up to 5 corpses and all the items the corpses are wearing/carrying. It also fulfills the same functions as a trowel or hand fork, in that they can be used to till grass and dirt tiles and to find worms.

Moving tiles

While the player has the shovel and an empty sack in their main inventory, a new contextual option will appear when right-clicking any one of these aforementioned tiles. This new option allows the player to move up to four tiles of dirt, sand, or gravel into a single sack, upon changing the sack to a dirt bag, sandbag or gravel bag, respectively. Each filled sack can then be "spilled" over any other pre-existing tile, changing it to the contents of the sack.

This option only works with the spade variant of the shovel, not the square head.

This mechanic is ideal when a specific location is desired for farming in which doesn't already contain dirt tiles. There generally isn't much use in spreading sand around, but areas that have been covered in gravel will not be overgrown by erosion and saplings cannot grow there, allowing for the creation of artificial driveways. Finally, bags full of sand or gravel can be used to set up sandbag walls and gravel bag walls, which offer some protection from gunfire.

Weapon

The shovel may also be used as a blunt melee weapon with a fast attack speed and intermediate damage. However, it is fairly fragile and caps at around 20-50 zombie kills before breaking, depending on the players' maintenance and long blunt skills, respectively.

Condition

The shovel has a maximum condition of 10. Its rate of degradation is influenced by the long blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (10 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the long blunt and maintenance skills.

Below is an example of the chance of losing durability at varying levels of the maintenance and long blunt skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Durability lower chance
0 0 1/10 (10%)
0 4 1/12 (8%)
0 8 1/14 (7%)
4 0 1/14 (7%)
8 0 1/18 (6%)
4 4 1/16 (6%)
4 8 1/18 (6%)
8 8 1/22 (5%)
10 10 1/24 (4%)

Distribution

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

Shovel 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
Bag_ToolBag Bag_ToolBag 2.81%
SafehouseLoot counter 15.1%
SafehouseLoot crate 10.78%
SafehouseLoot crate 15.1%
SafehouseLoot metal_shelves 10.78%
SafehouseLoot metal_shelves 15.1%
SafehouseLoot wardrobe 15.1%
SurvivorCache1 counter 15.1%
SurvivorCache2 counter 15.1%
ToolsCache1 ToolsBox 10.78%
ToolsCache1 counter 10.78%
all crate 0.65%
all metal_shelves 2.57%
all toolcabinet 10.78%
bedroom crate 0.65%
closet crate 0.65%
closet crate 10.78%
construction crate 10.78%
drugshack counter 10.78%
drugshack crate 10.78%
factory crate 10.78%
factory metal_shelves 10.78%
farmstorage crate 10.78%
farmstorage metal_shelves 10.78%
firestorage metal_shelves 10.78%
garagestorage counter 10.78%
garagestorage crate 0.65%
garagestorage crate 10.78%
garagestorage locker 10.78%
garagestorage metal_shelves 10.78%
gardenstore metal_shelves 10.78%
gardenstore shelves 10.78%
generalstore metal_shelves 10.78%
generalstore shelves 10.78%
generalstorestorage metal_shelves 10.78%
generalstorestorage shelves 10.78%
gigamart shelves 10.78%
kitchen crate 10.78%
loggingfactory crate 10.78%
loggingfactory metal_shelves 10.78%
pawnshop counter 10.78%
pawnshop crate 10.78%
pawnshop metal_shelves 10.78%
pawnshop shelves 10.78%
pawnshopstorage crate 10.78%
pawnshopstorage metal_shelves 10.78%
producestorage metal_shelves 10.78%
shed crate 10.78%
shed locker 10.78%
shed metal_shelves 10.78%
storageunit crate 0.65%
storageunit crate 10.78%
storageunit metal_shelves 0.65%
storageunit metal_shelves 10.78%
toolstore counter 10.78%
toolstore crate 10.78%
toolstore metal_shelves 10.78%
toolstore shelves 10.78%
toolstorestorage crate 10.78%
toolstorestorage metal_shelves 10.78%
warehouse crate 10.78%
warehouse metal_shelves 10.78%
Shovel2 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
Bag_ToolBag Bag_ToolBag 2.81%
SafehouseLoot counter 15.1%
SafehouseLoot crate 10.78%
SafehouseLoot crate 15.1%
SafehouseLoot metal_shelves 10.78%
SafehouseLoot metal_shelves 15.1%
SafehouseLoot wardrobe 15.1%
SurvivorCache1 counter 15.1%
SurvivorCache2 counter 15.1%
ToolsCache1 ToolsBox 10.78%
ToolsCache1 counter 10.78%
all crate 0.65%
all metal_shelves 2.57%
all toolcabinet 10.78%
bedroom crate 0.65%
closet crate 0.65%
closet crate 10.78%
construction crate 10.78%
drugshack counter 10.78%
drugshack crate 10.78%
factory crate 10.78%
factory metal_shelves 10.78%
farmstorage crate 10.78%
farmstorage metal_shelves 10.78%
firestorage metal_shelves 10.78%
garagestorage counter 10.78%
garagestorage crate 0.65%
garagestorage crate 10.78%
garagestorage locker 10.78%
garagestorage metal_shelves 10.78%
gardenstore metal_shelves 10.78%
gardenstore shelves 10.78%
generalstore metal_shelves 10.78%
generalstore shelves 10.78%
generalstorestorage metal_shelves 10.78%
generalstorestorage shelves 10.78%
gigamart shelves 10.78%
kitchen crate 10.78%
loggingfactory crate 10.78%
loggingfactory metal_shelves 10.78%
pawnshop counter 10.78%
pawnshop crate 10.78%
pawnshop metal_shelves 10.78%
pawnshop shelves 10.78%
pawnshopstorage crate 10.78%
pawnshopstorage metal_shelves 10.78%
producestorage metal_shelves 10.78%
shed crate 10.78%
shed locker 10.78%
shed metal_shelves 10.78%
storageunit crate 0.65%
storageunit crate 10.78%
storageunit metal_shelves 0.65%
storageunit metal_shelves 10.78%
toolstore counter 10.78%
toolstore crate 10.78%
toolstore metal_shelves 10.78%
toolstore shelves 10.78%
toolstorestorage crate 10.78%
toolstorestorage metal_shelves 10.78%
warehouse crate 10.78%
warehouse metal_shelves 10.78%

Code

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

Shovel.png Base.Shovel
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Shovel
    {
        DisplayCategory = Gardening,
        Type				=			Weapon,
        DisplayName			=		Shovel,
        Icon				=		Shovel,
        Weight				=		2.0,
        SubCategory    		=     Swinging,
        MinAngle			=			0.85,
        MaxRange 			= 			1.6,
        MinRange 			= 			0.61,
        PushBackMod			=			0.5,
        HitAngleMod			=			-30.0,
        SwingAnim			=			Bat,
        MaxHitCount 		=			3,
        WeaponSprite	=	Shovel,
        IdleAnim			=			Idle_Weapon2,
        RunAnim				=			Run_Weapon2,
        Weight				=			1.5,
        DoorDamage			=			10,
        MinimumSwingTime 	= 			2.1,
        SwingTime			=			2.1,
        SwingAmountBeforeImpact = 		0.02,
        ConditionLowerChanceOneIn 	= 	10,
        ConditionMax 		= 			10,
        Categories 			=			Blunt,
        TwoHandWeapon = TRUE,
        BreakSound  =   ShovelBreak,
        DoorHitSound = ShovelHit,
		HitSound = ShovelHit,
		HitFloorSound = ShovelHit,
		SwingSound = ShovelSwing,
        KnockdownMod	=	2,
        KnockBackOnNoDeath	=	TRUE,
        MetalValue = 70,
        TreeDamage = 1,
        CriticalChance	=	40,
        CritDmgMultiplier = 2,
        MaxDamage			=			1.9,
        MinDamage			=			0.8,
        BaseSpeed = 0.8,
       	WeaponLength = 0.55,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
     }

Shovel2.png Base.Shovel2
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Shovel2
    {
        DisplayCategory = Gardening,
        Type				=			Weapon,
        DisplayName			=		Shovel,
        Icon				=		Shovel2,
        Weight				=		2.0,
        SubCategory    		=     Swinging,
        MinAngle			=			0.85,
        MaxRange 			= 			1.6,
        MinRange 			= 			0.61,
        PushBackMod			=			0.5,
        HitAngleMod			=			-30.0,
        SwingAnim			=			Bat,
        MaxHitCount 		=			3,
        WeaponSprite	=	Shovel02,
        IdleAnim			=			Idle_Weapon2,
        RunAnim				=			Run_Weapon2,
        Weight				=			1.5,
        DoorDamage			=			5,
        MinimumSwingTime 	= 			2.1,
        SwingTime			=			2.1,
        SwingAmountBeforeImpact = 		0.02,
        ConditionLowerChanceOneIn 	= 	10,
        ConditionMax 		= 			10,
        Categories 			=			Blunt,
        TwoHandWeapon = TRUE,
        BreakSound  =   ShovelBreak,
        DoorHitSound = ShovelHit,
        HitSound = ShovelHit,
        HitFloorSound = ShovelHit,
        SwingSound = ShovelSwing,
        KnockdownMod	=	2,
        KnockBackOnNoDeath	=	TRUE,
        MetalValue = 70,
        TreeDamage = 1,
        CriticalChance	=	40,
        CritDmgMultiplier = 2,
        MinDamage			=			0.8,
        MaxDamage			=			1.9,
        BaseSpeed = 0.8,
       	WeaponLength = 0.55,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
     }

See also