Sanhedrin7: 11
הַמְכַשֵּׁף — הָעוֹשֶׂה מַעֲשֶׂה חַיָּב, וְלֹא הָאוֹחֵז אֶת הָעֵינַיִם. רַבִּי עֲקִיבָא אוֹמֵר מִשּׁוּם רַבִּי יְהוֹשֻׁעַ: שְׁנַיִם לוֹקְטִין קִשּׁוּאִין — אֶחָד לוֹקֵט פָּטוּר וְאֶחָד לוֹקֵט חַיָּב. הָעוֹשֶׂה מַעֲשֶׂה חַיָּב; הָאוֹחֵז אֶת הָעֵינַיִם פָּטוּר.
A sorcerer who performs a deed is liable, but not one who creates illusions. R’ Akiva says in the name of R’ Yehoshua: Two [people may] gather cucumbers —- one [of them] gathers [and] is exempt while [the other] one gathers [and] is liable. The one who performs a deed is liable; the one who creates an illusion is exempt.