Configure Addon
Now that you've created your project, you need to set several values in the addon
task.
If you're using the addon template, most of these values are already set for you.
Options marked with a * are required.
name*
This is the name of your addon.
Names may only contain alphanumeric characters, periods, underscores, and hyphens ([A-Za-z0-9._-]+
).
The lowercase version of this name is used as your addon's id.
Your items and blocks are linked to this id, so you cannot change it later, without breaking existing worlds.
Example:
In most cases, you can just use your project name:
version*
The version of the addon.
Example:
Or to automatically get the version from your project:
main*
Full path to your addon main class (without the .class extension).
Example:
dependency
You can declare dependencies on other plugins / addons using dependency
:
Example:
pluginMain
Full path to your plugin main class (without the .class extension).
If you don't define this property, Nova will generate a plugin main class for you.
You will be able to access your plugin instance via your addon object.
Example:
loader
A custom plugin loader.
Defining a custom plugin loader will disable Nova's library loading mechanism that can be
accessed via the libraryLoader
dependency configuration.
Example:
bootstrapper
A custom bootstrapper.
Example:
description
A description of your addon.
Example:
authors
A list of author(s) of your addon.
Example:
contributors
A list of contributors to your addon.
Example:
Or for multiple authors:
website
A website for your addon.
Example:
prefix
The prefix used in log messages.
Example: