
Make sure to replace the values i’ve marked with your own values or your plugin will fail to compile! REPLACE THIS WITH A DESCRIPTION OF YOUR PLUGIN

You should see a folder in your files with the name of your artifactID, click it and open the pom.xml file.ĭelete what’s currently in your pom.xml and paste the following: When that’s over it will ask you to confirm, enter Y, and then you should see this: This file cannot be displayed: Pre-plugin Setup In this case enter your groupID+artifactID, for example: or Once that’s done it will ask for what you’d like the package to be named. It doesn’t really matter what goes here but in the end it will be the prefix of your compiled jarfile. Once you’ve entered your artifactID it will ask for your plugin version, just put 1.0-SNAPSHOT to start with. So, just enter what you’d like to call your plugin without any spaces or special characters. If you don’t have a domain then use me.yourname.Īfter this it will ask you for your artifactID, this is basically the name of your project. For this, if you have a domain then enter tld.yourdomain, for example I own the domain astolfo.tech so I would enter tech.astolfo. The first message you see should be along the lines ofĪfter this you will see a message asking you to input your groupID. Leave it for a minute until it asks you to start inputting information for your project. Type the following commands in this order:Īfter that, you should begin to see Maven (a java build tool) spit messages in console.


Getting Started MavenĬreate a new Java repl and then go to the terminal/console. In this tutorial we will be building our plugin on the Spigot API using Maven as our build tool (Gradle is not available on as far as i’m aware). Plugins are typically cross compatible with the main APIs but if you use methods specific to PaperMC it will not run as intended on CraftBukkit or Spigot servers, so be careful if cross-compatibility is a concern for you. Minecraft Java plugin development can be done for a variety of different APIs such as CraftBukkit, Spigot, PaperMC, Bungeecord, etc.Ī Minecraft plugin is essentially a library built on these APIs that will allow you to interact with the API to create custom gamemodes, administration utilities, and much more!
#How to get into minecraft plugin coding free
This guide is geared towards creating a plugin on but will also work for IDEs such as Intelij IDEA and Eclipse (I recommend Intelij out of the two)įor any assistance feel free to leave a reply or join my Discord server discord.gg/zfgVqZv Background Information
#How to get into minecraft plugin coding how to
After many years of waiting, today I can officially announce that Minecraft Plugin Development has come to replit! With this tutorial you will understand all you need to know on how to create the basic boilerplate for a standard Java edition plugin for the Spigot API.
