October 2014
Beginner to intermediate
285 pages
6h 24m
English
This source code alone isn’t enough; you also need a configuration file so that Minecraft can find and launch your plugin. The configuration file is named Canary.inf and looks like this:
| HelloWorld/Canary.inf | |
| | main-class = helloworld.HelloWorld |
| | name = HelloWorld |
| | author = AndyHunt, Learn to Program with Minecraft Plugins |
| | version = 1.0 |
Here’s a description of what this file needs. Don’t worry much about the details yet—it will make more sense as we get further into the book.
Name of the package and class that Java will run to start this plugin (package.classname).
Name of the plugin—in this case, HelloWorld.
Name of the author (that’s you).
Version number of your plugin. Start low, ...
Read now
Unlock full access