O'Reilly logo

Learn to Program with Minecraft Plugins, 2nd Edition by Andy Hunt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Try Each Part

We’re going to start coding now, but as exciting as that is, we want to go slowly. Whether you’re following along with me here or working on your own plugin, remember to take one small step at a time—don’t rush it.

Let’s begin by creating a new directory and the usual files that every plugin needs. Once again we’ll use the mkplugin.sh script to get started. Don’t forget, you’ll be making your own plugin under desktop; my version is under Desktop/code.

 
~/Desktop$​ ./mkplugin.sh CreeperCow
 
~/Desktop$​ cd CreeperCow
 
~/Desktop/CreeperCow$​ ls -a
 
. .gitignore Manifest.txt build.sh src
 
.. Canary.inf bin dist

And we’ll start right away by using Git to track our work (check back with Chapter 12, Keep Your Code Safe , for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required