Notice in this video I don't have to craft the wand.
This will make working with spells much cleaner and quicker.
You have seen how to do everything in this lesson before. This will be good review
I like to place my export functions at the bottom of my code.
Now if we say:
spellName will be equal to "Vanishing"
But if we say:
spellName will be equal to "Chicken".
How can we get to the itemInMainHand property?
Here is a "map"
We'll be using this in the next step
If spellName is equal to "None" the player should get a magicWand in their hand
Typing this command in Minecraft should place the chickenWand into your hand
Created about 2 years ago
Teach coding to your students with MVCode Teach
MVCode offers an integrated product designed to teach coding to students.
Learn more about MVCode Teach