Cast your first spell

Here is your first spell:

const magik = magikcraft.io

function main() {
	magik.exsultus(50)
}
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.

Explanation

The first line:

const magik = magikcraft.io

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