Stormtrooper

A stormtrooper is a hostile sentient mob armed with a blaster pistol.

=Spawning= Stormtroopers spawn at a light level of 0 in groups of 4 or 5. They can be found above solid blocks on all planets except Felucia. 80% of stormtroopers spawned directly under the sky spawn as snowtroopers on Hoth.

=Behavior= Stormtroopers chase players they see within 16 blocks to get within shooting range. When within 15 blocks of a target, with a clear line of sight, they start shooting, once every second. If the player leaves the 15-block radius, stormtroopers wait for some seconds with the pistol loaded, shooting the moment the player comes within range again.

Their detection range is reduced to 8 blocks if a stromtrooper helmet is worn by the player. This stacks with the effects of a cloaking device and sneaking.

=Drops=
 * 0–2 laser beams. The maximum drop is increased by 1 per level of Looting, for a maximum of 0-5 laser beams with Looting III.
 * Picked-up items have a 100% chance of dropping.
 * Stormtrooper helmet if killed by a player.
 * 5 experience points when killed by a player or hound.

=Advancements=
 * Sharpshooter
 * Description: Kill a stormtrooper from at least 50 blocks away

=See also=
 * Rebel trooper
 * Tusken Raider
 * Outpost