Minecraft Plugins 2: ChickenBoom

Planning
Step 1
Planning
Step 2
This is what we are going to build:

THE POWER!!!

Planning
Step 3
As we build this plugin, let's take a closer look at the anatomy of a Java class.
Information
Step 4
We start by importing the packages we are going to use.
Information
Step 5
Take a moment to learn about the function of these words in the first line of a Java class.
Information
Step 6
Read the descriptions to understand what each part of the code is doing!
Information
Step 7
Take your time, read the code, read the descriptions, and understand how your plugin will work!
Step 8
Remember to save your files regularly!
Step 9
Add this code to the plugin's yml file.

This just gives the plugin a name to display on the server, a version number, and a pointer to the main class that contains the plugin.

main: "plugin" should always match the name of the class you create in the .java file

Step 10
Finish up the code for your plugin and make sure it compiles without errors.
Step 11
When your plugin compiles without errors go ahead and deploy it to your server!
Step 12
Open Minecraft and get ready to test your plugin! You will need a bow, an arrow, and a chicken egg.
Check Your Work
Step 13
Spawn some chickens, shoot them with your bow, and witness the destruction!
Challenge
Step 14
CHALLENGE: Make a larger explosion when you shoot a pig!
Planning
Step 15
In the next lesson we will build a plugin that will allow us to shoot Wither Skulls with a Blaze Rod!

Try one of these lessons next:

Minecraft Plugins 2: ChickenBoom Info

Account

MVCode

Created By

aaron

Access Level

public

For Teachers and Schools

Teach coding to your students with MVCode Teach

MVCode offers an integrated product designed to teach coding to students.

Learn more about MVCode Teach