Step 4

You can now start to add some custom procedures to different events on your sword and ranged weapon. An example of one that is relatively easy to add is making lightning strike whatever you right click on with the sword, hit an entity with the sword or hit something with a bullet. Below is the code. Feel free to experiment with different procedures! (The strike lightning code can be found in World Management.)

Once this is done, have student’s launch Minecraft to test all of their new mod elements!