Cast your first spell

Here is your first spell:

const magik =

function main() {
The jump spell
  • Create a new spell in the spellbook editor, and call it "jump".
  • Put the code above into the editor, replacing the code that is in there. Then save it.
  • Now, go to Minecraft and type: /cast jump. You will fly up into the air.


The first line:

const magik =

Creates a new constant, magik, and assigns the Magikcraft API to it.