Parasite

**Parasites** are worms that will burst out in a swarm sometimes when a zombie is slain.

## Spawning

When a zombie or its variants die, there is a 10% chance to spawn 3 to 5 Parasites (desert variant if the zombie is a husk, or jungle variant if the zombie is killed in jungle).

When a sand block is destroyed, there's a 2% chance to spawn a desert variant.

Parasites can only live for 16 seconds if it can't find any attackable target.

## Behavior

### Nasty Bite

The melee attack of Parasites inflicts  Infested for 8 seconds. In addition, the jungle Parasites also inflicts  Poison for 4 seconds.

However, Parasites will not be hostile to players when the light level is 12 or more.

### Attaching

When a Parasites collides with a zombie or player, it will attach to it. A dead zombie with a Parasite attached is guaranteed to spawn another 3 to 5 Parasites.

If its host is burning, then the Parasite will get burnt and detach itself.

Parasites attaching on players can still be harmed by weapons, or killed by drinking Milk.

### Tiny Creature

Players are allowed to pick up Parasites with their bare hands, receiving a Parasite as a result.

### Metamorphosis

* After 16 seconds of limit life, Parasites has 20% chance to form a Beelzebub Pupa instead. The pupa will then transform into a Beelzebub after 8 seconds.
* Jungle Parasites, instead, has 20% chance to form a Vespa Cocoon. The cocoon will then transform into a highly aggressive Vespa after 8 seconds.

## History

* 2.2.0:
	+ Will no longer attack mounted player
	+ Will now have chances to moult into a Beelzebub
	+ Can now set attacking targets through json file.
* 2.0.2:
	+ Fix Parasite/Vespa not attacking zombie
* 2.0.0:
	+ No longer drops Slimeball & String
	+ Will now stick on the wall
* 1.3.1:
* Fix an error that causes game to crush when picking up a Parasite.
* 1.3.0:
	+ Can now be picked up only by empty hand
	+ Fix an error where Parasite cannot spawn from Husk in default
* 1.2.4:
	+ Now spawn desert variants when in dry biomes.
	+ Add a configure option to customize which mobs to spawn parasite when killed.
	+ Now inflicts Infested when attacking
	+ No longer inflicts  Hunger when attacking
	+ Attacking range now decreased
	+ Fix Parasite causing crash when interacting with other objects
	+ Fix an error where Parasite still spawn even when spawn rate is 0.
* 1.2.1:
	+ Will only appear from the sand blocks in the overworld
* 1.2.0:
	+ Now burn and detach when its host is burning
	+ Fixed an error where Parasite Spawn Egg could only spawn normal Parasite.
	+ Fixed synchronizing issues with Parasite. (issue#4, issue#11)
* 1.0.13:
	+ will now only spawn from zombies that have lived for 3+ seconds.
	+ Fixed an error where Parasite didn't stay properly on player's face.
* 1.0.12:
	+ Adjust the hitbox of Parasite
	+ Add more sound effects to Parasite
	+ Won't ride on other Parasites now
	+ Will now try to attack riding target.
	+ The type of damage to self-destruction: Starve → Mob Attack
	+ Fixed an error where Parasite would spam messages when morphing.
* 1.0.11:
	+ Now forms a cocoon before emerging as Vespa
	+ It takes 8 seconds to complete metamorphosis
	+ Now drops fewer experience points
	+ Fixed an error where Parasite can't stay persistent on target
	+ Fixed an error where Parasite would cause crash when sending message to players
* 1.0.10:
	+ Now Have a shorter attack range
	+ Now will only attach to its target when colliding
	+ Jungle varient will now have a chance to morph into Vespa.
	+ Fixed an error where Parasite remain in place after attaching to player.
* 1.0.9:
	+ New Varient: a new varient that only appears in the jungle, and has a venomous attack.
	+ Players can be modify the rate of spawning parasite when destroying sand blocks.
* 1.0.8:
	+ the model has received a minor tweak.
	+ Fixed a bug where custom particles emitted from parasite would cause a server crash.
* 1.0.7:
	+ new model
	+ multiple Parasites can now infest one zombie at once.
	+ now has a desert varient
	+ desert varient may spawn when a husk is killed or when a sand block is destroyed(configurable).
	+ add a configure option to allow Parasite attacking all entities on sight.
* 1.0.2:
	+ spawn upon death decrease form 4-8 to 3-5
	+ movement is slowed by 50%
	+ detection range decrease from 16 blocks to 8 blocks
	+ HP increase from 4.0 () to 6.0 ()
	+ Loot tables is changed to 10% 0~1 String, 10% 0~1 Slimeball and 20% 0~1 Parasite
* 1.0.0:
	+ Introduced.