Cloud icon

Cloud -----

Make your own plugin without the load



Let's learn how to make our own addon.

First, install IntelliJ Idea
For this tutorial we will be using the addon for IntelliJ called Minecraft Development. Let's get started

Step one, create a new project with spigot
[​IMG]
Click next, after that the most important part of this is to use a preset group id and artifact id, use these
[​IMG]
Great, just continue and customize your plugin after clicking next. For this tutorial we will be using maven.

Go into your pom.xml

Add this code under repositories

HTML:
<repository>
            <id>jitpack.io </id>
            <url>https://jitpack.io </url>
        </repository>
Next, add this code under dependencies
HTML:
<dependency>
            <groupId>com.github.horizonstudiosmc </groupId>
            <artifactId>Cloud </artifactId>
            <version>48c31eef </version>
        </dependency>
        <dependency>
            <groupId>com.github.Revxrsal.Lamp </groupId>
            <artifactId>bukkit </artifactId>
            <version>3.0.7 </version>
        </dependency>
        <dependency>
            <groupId>com.github.Revxrsal.Lamp </groupId>
            <artifactId>common </artifactId>
            <version>3.0.7 </version>
        </dependency>
Now, you can change the main class to look something like this:

Code (Java):
public class Addon {

        Cloud instance ;

        public Addon (Cloud instance ) {
            this. instance = instance ;
        }

        // Use this to register your commands and events.
        public void addonMain ( ) {
            // Use instance.registerCommand(new Class(), "name"); to register commands
            // Use instance.registerEvent(new Class(), "name"); to register events
        }
    }
Perfect, now you can use lamp normally, and the event api normally. That's about it, click run to build then pop that jar in the addons folder
Resource Information
Author:
----------
Total Downloads: 47
First Release: Jul 19, 2022
Last Update: Jul 19, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings