Enderman

Endermen are tall, black neutral mobs from the End that have the ability to teleport, and pick up blocks.

Spawning
An enderman can spawn in areas with light level 7 or less (11 or less in the End), on any solid surface having at least three empty spaces above. They spawn in all dimensions.

Overworld
Enderman spawn uncommonly on land and in caves in groups (hauntings) of up to two.

Nether
Single endermen spawn rarely in nether wastes and soul sand valleys, and frequently in warped forests.

End
Endermen spawn commonly in hauntings of up to four in the end islands.

Drops
Endermen drop:


 * 0–1 . (50%) The maximum is increased by 1 per level of Looting, for a maximum of 0-4 with Looting III.
 * when killed by a player or a tamed wolf.
 * Any block being held (see for more information)

Behavior
Endermen are neutral unless provoked by a player or mob attacking them, or by a player looking them in the eyes from up to 64 blocks away. When provoked, endermen open their mouths, begin to shake aggressively, and scream, while also making lengthy, loud, threatening sounds while being stared at. If the player continues to maintain eye contact, the enderman does not run, although it may teleport away. Once the player stops looking at the enderman, it runs toward the player to attack, although it ceases if hit by another player or mob. An aggravated enderman may also teleport to the location of a player or mob up to 32 blocks away (orthogonally). Endermen even try to retaliate against the ender dragon should it attack them, though they fail to do any damage as the ender dragon will simply push them away.

Endermen can also step up one full block without having to jump.

Endermen are damaged by melee attacks, water, splash water bottles, and rain, though not when standing in a filled cauldron, and may teleport away when they take damage from any of these ( every half second for water and rain, and for splash water bottles), continuing to do so until they find a dry location. They also teleport if they take damage from other sources, such as suffocation, fire, lava, poison, or the wither effect. Ranged attacks are ineffective against endermen, as they simply teleport away before the projectile hits.

Endermen pursue the player until they are either killed or become distracted by exterior elements, such as rain, fire, or sunlight (though they do not take damage from sunlight like undead mobs). During rain or daybreak, they teleport away to underground locations, such as caves. An enderman (whether neutral or aggravated) in a player's vicinity prevents the player from sleeping in a bed at night as if any hostile mob were nearby. If the player is already asleep in a bed, it is possible for an enderman to teleport on it and knock the player off, although the player continues sleeping.

Endermen cannot be provoked by players looking at them through transparent blocks. Endermen also cannot be provoked by players looking at them while wearing a carved pumpkin on their head or by players under the invisibility effect. Attacking an enderman provokes it even if a carved pumpkin is worn. However, Endermen aren't provoked if the player looks at the ground or at the Endermen's feet while approaching it.

Endermen attempt to kill endermites spawned from the use of ender pearls, with a detection range of up to 64 blocks. They do not attack endermites spawned through any other means, such as spawn eggs.

When an enderman is under the Invisibility effect, the enderman's eyes are still visible, similar to invisible spiders.

Teleportation
Each attempt at a teleport chooses a random destination 32 blocks along each axis (i.e. a 64×64×64 cuboid centered on the current position). It then seeks downward, regardless of distance, from the chosen destination until the block below is made of a movement-blocking material. The teleportation attempt succeeds if no liquid or solid blocks prevent them from standing at the destination. Thus, endermen need at least three non-solid blocks above the destination to successfully teleport, with a few exceptions, such as a carpet that is not above a block made of a movement-blocking material, lily pads, and snow layers stacked 10 blocks deep or more, as their materials are not flagged as blocking movement even though the blocks themselves do so. Endermen do not teleport to waterlogged blocks.

Endermen always attempt to teleport upon taking damage. Most ordinary melee attacks are successful, but the enderman usually teleports a few blocks behind the player when hit, if there is space behind the player. Endermen cannot normally be attacked with projectiles (including splash potions of harming), as they always teleport away just before being hit, unless they are in a boat or minecart. However, they do not teleport if positive potions are thrown at them, including splash potions of Regeneration and Strength, though this is also true with potions of poison. If all available blocks within teleport distance are removed or unable to be transported to, it is possible to hit endermen $$ with a projectile, though arrows may simply bounce off, dealing no damage on occasion. When teleporting due to damage, an enderman can make up to 64 attempts to teleport.

If it is raining and there are no caves nearby, or on Superflat worlds, endermen frantically teleport around the map, taking damage until the rain stops, they find cover, or they die.

An enderman cannot teleport while it is in a minecart or boat, although in rain and water it attempts to do so, always teleporting back repeatedly until death. This does not occur $$.

Endermen do not teleport in the daytime if on soul sand unless they are damaged. They also do not teleport if attacked on their legs or by wolves, as wolves attack at the legs. Endermen also rarely teleport when fighting other mobs, such as iron golems.

They play a sound exclusively at the teleportation destination.

Moving blocks
Endermen have a unique ability to pick up, carry, and set down certain block types. They silently pick up blocks in a 4×4×3 region horizontally centered on the enderman and vertically at the same level as the enderman itself. One side effect of this is that an enderman cannot pick up blocks in a completely flat area. Endermen drop the block they are holding upon death as an item, though they do not visually let go of the block when dying. If an enderman is holding a block, they are unable to despawn. Enderman cannot place their blocks onto and on entities.

Endermen can pick up the following blocks:


 * Fungi
 * Roots
 * Nylium
 * Fungi
 * Roots
 * Nylium
 * Roots
 * Nylium
 * Nylium
 * Nylium
 * Nylium
 * Nylium
 * Nylium

Data packs can change this list by modifying the  block tag.

When carrying a block, the enderman may randomly silently place it in a 2×2×2 region horizontally centered on the enderman and vertically at the same level as the enderman itself if the target location is air with a non-air block beneath and the block is allowed to be placed at the target location.

While endermen may breach walls, bridge fences, break redstone circuitry, and even construct golems by removing or placing blocks, they can also potentially set off explosions and kill themselves if they place a block of TNT on a power source. However, none of these actions are ever intentional and are completely random if they occur.

One can summon an enderman holding any block (including the ones not listed above) using the  NBT data.

For example, to summon an enderman holding with no AI where the player is standing:

/summon minecraft:enderman ~ ~ ~ {NoAI:1,carriedBlockState:{Name:"netherrack"}}

ID




Entity data
Endermen have entity data associated with them that contains various properties.

Trivia

 * The sounds endermen make are actually people saying "Hi" and "What's up," but backward and distorted.
 * Notch claimed in public that the enderman is a "subtle reference" to the Slenderman, a similar-looking monster with a similar name. Given the later development of the End, it is possible he already had the name in mind, and did not choose it because of the Reddit thread in which their name was revealed.
 * The enderman could also be considered a reference to SCP-096. Like the enderman, 096 is a long-limbed humanoid that is normally passive but becomes aggressive when it’s face is observed. Upon observation, 096 will begin to scream and cry, before attacking the observer, regardless of distance. Additionally, both the enderman, and SCP-096 are able to open their jaws extremely wide.
 * The collective noun for a group of endermen is "a haunting of endermen," as stated by Dinnerbone. Additionally, in the third episode of Minecraft: Story Mode, The Last Place You Look, a player is given the option to correct the grammar of other characters by specifying that the collective noun for a group of endermen is "a haunting of endermen."
 * Switching to spectator mode and taking an enderman's point of view adds a shader that inverts colors, suggesting that they see the End as an island of blue cobblestone (as end stone is a yellowish version of cobblestone with inverted colors) in a white sky, with white pillars, white endermen with green eyes and a white ender dragon, also with green eyes. They also see cobblestone as end stone.
 * The texture for an enderman's eyes is located in a different texture file than the body, allowing their eyes to glow. Because the two textures do not line up perfectly, forcing an enderman to look straight up causes its eyes to turn blank white.
 * The enderman teleportation sound also plays when a player teleports using an ender pearl or chorus fruit.
 * Endermen are the only mobs who naturally spawn in all three dimensions.
 * Endermen don't actually teleport away before being hit by projectiles. They are immune to them. This can be seen by trapping an Enderman in a boat and shooting projectiles at it.