The Shulker is a hostile End mob with 30 health points. It attaches to block faces, closes its shell for protection and opens it to fire homing bullets. Colored shells are states of the same mob.
Shulkers are placed as sentries when end cities generate on the outer islands of the End. Clearing a city does not start a replacement spawn cycle. A new Shulker can instead appear through projectile-triggered duplication.
A Shulker opens its shell to fire a bullet that follows its target in straight segments joined by right-angle turns. A hit applies Levitation. In Java Edition the effect lasts 10 seconds. A closed shell protects the Shulker. In Java Edition it adds 20 armor points and deflects arrows.
A Shulker can teleport when hurt or when it cannot remain attached to its block. In Java Edition it seeks an empty position with a usable attachment face. If an open Shulker is struck by a Shulker bullet and successfully teleports through the duplication check, another can appear at its former position. Nearby Shulkers reduce the chance. Bedrock Edition also supports duplication after a Shulker projectile hit and prioritizes nearby attachment faces before teleporting when it needs a new surface.
Shulkers can drop shells used to craft shulker boxes. With no Looting, both editions give a 50% chance of one shell. The shell loot tables do not require a player kill.
In Java Edition 26.3, each level of Looting adds 6.25 percentage points to the chance, reaching 68.75% at Looting III. The roll still yields at most one shell. The Bedrock Edition 26.62 loot table instead allows Looting to increase the number of shells.