Fetching details from the dictionary...
charm; incantation; spell; curse
code that is not (yet) necessary to understand; required boilerplate code
おまじないをして出かけた。
I cast a charm before going out.
このおまじないは効くかな。
I wonder if this charm will work.
子供におまじないを教えた。
I taught the child a charm.