Code:
on eat of enchanted golden apple:
if name of event-item is "&bMega golden":
set player's flight mode to true
apply invisibility to player for 5 seconds
create explosion at event-player's location
send "&a+Fly!" to player
wait 3 seconds
set player's flight mode to false
[23:17:05 INFO]: [Skript] Reloading testfiziki.sk...
[23:17:05 INFO]: Line 48: (testfiziki.sk)
[23:17:05 INFO]: There's no location in an on consume event
[23:17:05 INFO]: Line: create explosion at player's location
[23:17:05 INFO]: [Skript] Encountered 1 error while reloading testfiziki.sk! (36ms)