Poison-spitter

A poison-spitter is a hostile mob found on the planet Felucia. Its plant-like appearance helps it to blend in with surrounding plants.

=Spawning=

Natural generation
Poison-spitters spawn during the generation of Felucia. They usually spawn at the root of giant purple mushrooms. They don't despawn naturally.

Post-generation
There is a chance that a new poison-spitter of the same color will spawn when one poison-spitter hits another poison-spitter or itself with its poisonous spit.

The following conditions need to be met:
 * When the poison-spitter has less than half its health remaining and gets hit, it can teleport without spawning a new poison-spitter. The chance for this to happen is 25%. It uses the same process as described below. If the attempt fails, it continues with the spawn attempt.
 * The hit poison-spitter must have its petals open.
 * The hit poison-spitter needs to find somewhere to teleport. For this, it takes a random block in a 17×17×17 cuboid centered on the poison-spitter and then checks if the block has a valid face to teleport to. If not it proceeds to try this up to 4 more times. If no valid face is found, the attempt fails.
 * Each other poison-spitter within 8 blocks of the hit poison-spitter decreases the odds of success by 20%. When five or more other poison-spitters are nearby, no poison-spitters will spawn.

If the attempt succeeds a new poison-spitter spawns where the old poison-spitter was before it teleported.

=Drops= Upon death, a poison-spitters drops:
 * A poison-spitter petal (50% chance).
 * 5 experience points when killed by a player or a hound.

=Behavior= WIP

=Transportation= WIP

=Sounds= WIP

=Advancements=
 * How Did We Get Here?
 * Description: Have every effect applied at the same time
 * Adventure
 * Description: Adventure, exploration, and combat
 * Actual requirements: Kill any entity, or be killed by any entity.
 * Monster Hunter
 * Description: Kill any hostile monster
 * Monsters Hunted
 * Description: Kill one of every hostile monster