Minecraft wiki entry for Creeper, associated text: If a player has the invisibility effect and isn't wearing any armor, the creeper does not approach the player, although attacking it or touching it (the player's hitbox must touch the creeper's) causes the creeper to explode.