Step 3

Now that our tools are completed, we can now add some additional functionality to them using triggers. We are going to set our Pickaxe to explode the ground when you right-click with it. To begin with, create a procedure and call it something like “explosion” or whatever descriptive wording you’d like.

Once you are in the procedure interface, we need to add the explosion segment to our code. Click on “World Management” and then bring in the “Explode at” code segment pictured below. After, save the mod element.

The explosion power is how many “rays” the explosion will create and the amount of force they have. An explosion in Minecraft is made by a bunch of lines being drawn from the center of the explosion, and these lines, or rays, go a specific distance, which is the power number, outwards. The higher the number, the further out these rays go. The next thing we need to do is add it to our shovel. In your workspace, double click your pickaxe and click Next until you get to the following screen.

Select the drop down menu on the following trigger and select your procedure and click it.