Shovel: Difference between revisions

From PZwiki
m (replaced "Insects" link + changed icon to new icons + replaced deprecated navboxes)
(tidied page and added links)
Line 29: Line 29:
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=farming.Shovel
|class_name=farming.Shovel
}}A '''shovel''' is a [[farming]] tool primarily used to move dirt, sand, and gravel. Additionally, it can be used to dig graves (a way 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]] and can be used to till grass and dirt tiles and to find [[worm]]s.
}}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]].


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 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 gunfire.
==Usage==


The shovel may also be used as a blunt melee [[Weapons#Long_Blunt|weapon]] with a fast attack speed and intermediate damage, however it is fairly fragile and caps at around 20 [[zombie]] kills before breaking. It can commonly be found inside [[Container#Crates|crates]], sheds, and [[Containers#Shelves|work shelves]].
===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.
 
===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.
 
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===
 
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 [[zombie]] kills before breaking.
 
==Distribution==
 
Shovels can commonly be found inside [[Container#Crates|crates]], sheds, and [[Containers#Shelves|work shelves]].


== Code ==
== Code ==
Line 73: Line 89:
==See also==
==See also==
*[[Trowel]]
*[[Trowel]]
*[[Hand Fork]]
*[[Farming Guide]]
*[[Farming Guide]]



Revision as of 02:11, 6 August 2022


Template:Infobox weaponA 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 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 zombie kills before breaking.

Distribution

Shovels can commonly be found inside crates, sheds, and work shelves.

Code

From farming.txt (Project Zomboid directory/media/scripts/)

	item Shovel
		Type				= Weapon,
		DisplayName			= Shovel,
		Icon				= TZ_Shovel,
		Weight				= 2.0,
		SubCategory    			= Swinging,
		MinAngle			= 0,
		MaxDamage			= 1.9,
		MinDamage			= 0.8,
		MaxRange 			= 1.5,
		MinRange 			= 0.61,
		CriticalChance 			= 10,
		PushBackMod			= 0.5,
		HitAngleMod			= -30.0,
		SwingAnim			= Bat,
		MaxHitCount 			= 1,
		WeaponSprite			= Shovel,
		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  			= PZ_WoodSnap,
		KnockdownMod			= 2,
        	KnockBackOnNoDeath		= TRUE,
        	MetalValue 			= 70,


See also