Developer API - BoBoBalloon/InnovativeItemsDOCS GitHub Wiki

Intro

(This section is for Java developers, if you do not know Java or other languages that run on the JVM this section will not be useful)

As shown throughout the rest of the wiki pages and documentation, this is customizable plugin, it allows those with zero Java experience to make their dreams a reality. But the implementation of the functions used must come from somewhere. Well, this section of the documentation will go over the function manager and how to create and register your own custom keywords and conditions.

Please keep in mind that theses tutorials will go over some of the internals of the plugin and could change from update to update. I will try my best to update the Developer API section accordingly and to deprecate old internals for a few updates before they are completely removed.

Dependency

First, make a new plugin just as you normally would and add Innovative Items to your project's dependencies. If you were making your project in maven you would add this to the dependencies section of your pom.xml:

<dependency>
    <groupId>me.boboballoon</groupId>
    <artifactId>InnovativeItems</artifactId>
    <version>(put version of the plugin here)</version>
    <scope>system</scope>
    <systemPath>(put system path to jar here)</systemPath>
</dependency>

After that, add a hard depend to the Innovative Items plugin in the plugin.yml like so:

name: (name of your plugin here)
version: (version of your plugin here)
main: (fully-qualified class name of your main class here)
api-version: (minecraft version here)
depend: [InnovativeItems]

If you are unsure what a fully-qualified name of a class is, click here.

After Setting Up

After you have setup the dependency you are ready to start writing some code. Please continue to the keyword section to learn more.

⚠️ **GitHub.com Fallback** ⚠️