Minecraft wiki entry for Things_not_to_do, associated text: If the player wants to hunt endermen without fear of provoking them prematurely, a player can wear a carved pumpkin instead of a helmet to prevent endermen from becoming hostile when looking at them. While this is an effective way to approach an enderman safely, the pumpkin also makes it more difficult to see other monsters and fight them, unless using third person camera view, though this too has its disadvantages if one is not accustomed to it. Another way to use a pumpkin as a helmet is to press F1 (Fn + F1 on Macs and other Laptops). However, this view hides the player's hand and hotbar. If the player's armor is of high quality, such as enchanted iron, diamond or netherite armor, a normal helmet may be used instead of a pumpkin as the boost in defensive armor may allow the player to fight more efficiently.