Guardian

The Guardian is an underwater hostile mob. It also has a larger, grey, mini-boss variant called the Elder Guardian.

Spawn
Guardians only spawn naturally in ocean monuments. They require water to spawn.

Guardians spawn less often in ocean open to the sky than they do in covered areas (i.e. inside the monument). Specifically, spawning will fail 95% of the time if the spawning water block is below Y=63, all blocks between the spawning water block and Y=63 are liquid or fully transparent, and the block at Y=63 has a view of the sky. Above Y=63, spawning will fail 95% of the time if the spawning water block has a view of the sky.

Drops
Guardians drop 0 to 1 prismarine crystals, 0 to 2 prismarine shards, and 0 to 1 raw fish.

Guardians have a 2.5% chance of dropping a rare drop when killed by the player. The chance of which fish you get is identical to catching fish: 60% chance for raw fish, 25% chance for raw salmon, 2% chance for clownfish, and 13% chance for pufferfish.

Looting increases the maximum prismarine shard drop by one per level. The chance of getting a raw fish drop is 50% with Looting I (2/4), 60% with Looting II (3/5), and 67% with Looting III (4/6). The chance of getting a rare drop is also increased by 0.5% per level.

The prismarine crystals drop will only happen if the common raw fish drop fails, with the same chances as the raw fish drop. This works out to a base chance of 22% (2/9), Looting I giving 25% (4/16), Looting II dropping down to 24% (6/25), and Looting III giving 22% (8/36), which is the same as the base chance.

Behavior
Guardians swim around in water, attacking any players or squids that come into sight. They swim in abrupt charges, moving their tail rapidly when doing so. When swimming, their spikes retract. When not swimming they sink.

Their eye follows and stares at any nearby players, and will always look directly at who they're attacking. Guardians' eyes will still follow a completely unarmored player under the effects of a Potion of Invisibility, but this is entirely visual and they won't attack them. Guardians will still attack squids under that same status effect though.

When out of water, Guardians angrily squeak at the player while flopping about. They do not suffocate in air and can live indefinitely out of water. They will quickly move towards the nearest water source, at which point they swim away.

Combat
Guardians have two methods of attack: a laser and a thorn-like attack. Unlike other hostile mobs, a Guardian will not follow the player if they move out of sight. Instead, it will simply continue swimming until the player becomes visible again, and will then start to charge its attack.

The laser takes several seconds to charge, doing no damage in the meantime, and changing from purple to bright yellow. Once charged, the beam abruptly ends and deals damage. Guardians will swim around for a few seconds before firing again. If the target comes near the guardian while it is firing its beam, it will stop firing and swim away until it is at a comfortable range, at which point it will continue attacking. The beam cannot be dodged, and has a maximum range of approximately 15 blocks. Once the player is out of range, or if the beam is obstructed by solid blocks, the guardian's beam will disengage from the player, and deal no damage.

It seems that Guardian beam attack is not fully affected by armor damage reduction. While guardian does 9 points of damage (hard difficulty) to unarmored player it deals 5 to player in diamond armor - one would expected that attack would get reduced to 2 points of damage. That means that while Guardian attack stats do not look very impressive, it stills deal more damage than other mobs with higher stats. Using enchanted armor can still reduce damage further though.

Guardians deal 1 heart (2 points) of damage every time it is hit when its pufferfish-type spikes are extended. If cornered, the guardian will usually extend its spikes and fire at the player, even at point blank range.

Trivia

 * A guardian's eye is actually the "head" part of the mob's model. This gives the illusion of a dynamic eye.
 * Underwater, Guardians emit deep, growl-like sounds, but on land they emit high-pitched squeaks. This probably reflects the fact that water can alter sounds.
 * Guardians' laser-beam attacks are affected by the Potion of Strength, which normally only affects melee attacks of mobs.
 * When placed or spawned on a slime block, Guardians will start bouncing and continue, each bounce higher than the last, until each bounce brings the Guardian to 17 blocks height.
 * In the image of the 3D model, 'jeb' is written on the picture.
 * If summoned with {NoAI:1}, the Guardian's eye still follows the player.

Gallery
Wächter Guardián Gardien Guardian pt-br:Guardião Страж 守卫者