Here is your first 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 = magikcraft.io
Creates a new constant,
magik, and assigns the Magikcraft API to it.