Minecraft Plugins 8: CustomMobs

Step 1
Step 2
Here is a demonstration of the custom zombies in action:

That zombie takes a lot of hits to bring down!

Step 3
Begin by importing the packages we are going to need for this plugin.
Step 4
Here is the body of the custom zombie plugin. Make sure you read the red text and understand what each line is doing!
Step 5
Make sure you set up your plugin.yml file properly!

Refer to a previous plugin you've made if you need help remembering what to do.

Check Your Work
Step 6
Save, compile, deploy, reload, and test your custom zombies!
Step 7
Let's make our custom zombies little more interesting by giving them a custom sound effect also.

This code will make the zombie make a ghast shriek sound when it targets the player!

Check Your Work
Step 8
Check your work. Make sure the zombies make a ghast shriek when they target you!

You will need to enter survival mode for the zombies to target you.

Step 9
CHALLENGE: Create your own custom mob and give them whatever equipment you want!
Step 10
In the next lesson we will build a Warping plugin!

Try one of these lessons next:

Minecraft Plugins 8: CustomMobs Info



Created By


Access Level


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